idx for checking location of the first option/flag