HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)

g
getopt(1) getopt(1)
done
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
sh(1), getopt(3C).
Section 1342 Hewlett-Packard Company 2 HP-UX 11i Version 1: September 2005