git: ad2a46d0ce30 - main - getopt_long.3: Use "optstring" consistently
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 29 Apr 2025 19:12:57 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=ad2a46d0ce305dbcbcedc213865cdec6ee13792b
commit ad2a46d0ce305dbcbcedc213865cdec6ee13792b
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2025-04-29 17:00:20 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-04-29 19:12:37 +0000
getopt_long.3: Use "optstring" consistently
The SYNOPSIS uses "optstring" as the argument name but the body text
used a mixture of "optstr" and "optstring."
Sponsored by: The FreeBSD Foundation
---
lib/libc/stdlib/getopt_long.3 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/libc/stdlib/getopt_long.3 b/lib/libc/stdlib/getopt_long.3
index f8bb1f1b6b11..d6998d13822a 100644
--- a/lib/libc/stdlib/getopt_long.3
+++ b/lib/libc/stdlib/getopt_long.3
@@ -217,7 +217,7 @@ an error and return
Specifying
.Ql \&:
in
-.Fa optstr
+.Fa optstring
will cause the error message to be suppressed and
.Ql \&:
to be returned instead.
@@ -229,7 +229,7 @@ a leading
or
.Ql \&-
in
-.Fa optstr
+.Fa optstring
also has special meaning.
If either of these are specified, they must appear before
.Ql \&: .