Open System Services Library Calls Reference Manual (G06.27+, H06.04+)

OSS Library Calls (g - h) getopt(3)
The argv[optind] result points to the - (dash) string.
The getopt() function does increment optind if the result of argv[optind] points to the -- (dash
dash) string.
RELATED INFORMATION
Commands: getopt(1).
527187-004 Hewlett-Packard Company 355