Added getopt argument parsing for autoflash -y