option followed by a option in getopt [where the earlier option was expecting a value]
问题 I have a doubt if we have two option -a and -c and option -a needs to have a value and no value for -c now if i give ->testopt -a -c [testopt is program] then my program takes -c as a value for -a . is there a way where i can make sure that a option with value does not have other options as its values ? the thing is that the system accepts - one keyword's value as another keyword which i need to prevent . e.g. - testopt -a -c. in this case there was a mandatory argument (value ) for -a and no