1

What kind of applications use getopt "return in order" behavior?

view story
linux-howto

http://stackoverflow.com – Quoted from the getopt() Linux Manual page: If the first character of optstring is a hyphen (-), then each nonoption argv-element is handled as if it were the argument of an option with character code 1. (This is used by programs that were written to expect options and other argv-elements in any order and that care about the ordering of the two.) The special argument double hyphens (--) forces an end of option-scanning regardless of the scanning mode. Quoted from the manual page of Java GetOpt class: ...The second is to allow options anywhere, but to return all elements in the order t (HowTos)