The parameter that contains valid options is "optstring", not "optarg".
This commit is contained in:
parent
33e0e594a8
commit
84bc874893
@ -142,7 +142,7 @@ returns \-1.
|
||||
If the
|
||||
.Fn getopt
|
||||
function encounters a character not found in the string
|
||||
.Va optarg
|
||||
.Va optstring
|
||||
or detects
|
||||
a missing option argument it writes an error message to the
|
||||
.Em stderr
|
||||
|
Loading…
x
Reference in New Issue
Block a user