Fix getopts flags

Change-Id: Ifcf4d91647a48055ebdf1c2f139e071ac5c52bd4