getopt.1 (2010 09)

g
getopt(1) getopt(1)
This code accepts any of the following as equivalent:
cmd -aoarg file file
cmd -a -o arg file file
cmd -oarg -a file file
cmd -a -oarg -- file file
WARNINGS
getopt option arguments must not be null strings nor contain embedded blanks.
SEE ALSO
getopts(1), sh(1), getopt(3C).
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010