From 84bc874893d728ab56edb98c932641b7b0e18ba1 Mon Sep 17 00:00:00 2001 From: mph Date: Tue, 28 Nov 2000 22:06:17 +0000 Subject: [PATCH] The parameter that contains valid options is "optstring", not "optarg". --- lib/libc/stdlib/getopt.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3 index 161492437189..d8beee2e2b34 100644 --- a/lib/libc/stdlib/getopt.3 +++ b/lib/libc/stdlib/getopt.3 @@ -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