command line options
Doug Gwyn
gwyn at brl-smoke.ARPA
Wed Apr 13 00:21:08 AEST 1988
In article <866 at cresswell.quintus.UUCP> ok at quintus.UUCP (Richard A. O'Keefe) writes:
>still freakish: '?' is the value that getopt() returns to its caller to
>say that something went wrong (but note that this behaviour CAN be disabled
>by the caller, so it is NOT guaranteed in all programs that use getopt).
The only thing that can be disabled is the automatic error message
produced by getopt() itself. An invalid flag is still returned as
a '?' value by getopt(). Of course the application programmer may
have chosen to be less than helpful in error situations. Nothing
in any getopt()-like design can help this.
More information about the Comp.unix.wizards
mailing list