[PATCH 1/6] getopt: (usage) make the description of -U fit within 80 columns

Benno Schulenberg <[email protected]> Thu, 18 Sep 2025 10:57:02 +0200
Newsgroups org.kernel.vger.util-linux
Message-ID <[email protected]>
(It is good practice to keep --help output from causing ugly
wrapped text when printed to a standard 80-column terminal.)

Signed-off-by: Benno Schulenberg <[email protected]>
---
 misc-utils/getopt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc-utils/getopt.c b/misc-utils/getopt.c
index 180313cb4..68dba4597 100644
--- a/misc-utils/getopt.c
+++ b/misc-utils/getopt.c
@@ -372,7 +372,7 @@ static void __attribute__((__noreturn__)) usage(void)
 	fputs(_(" -s, --shell <shell>           set quoting conventions to those of <shell>\n"), stdout);
 	fputs(_(" -T, --test                    test for getopt(1) version\n"), stdout);
 	fputs(_(" -u, --unquoted                do not quote the output\n"), stdout);
-	fputs(_(" -U, --unknown                 leave unknown options as they are and disable getopt(3) error messages\n"), stdout);
+	fputs(_(" -U, --unknown                 leave unknown options as they are (implies -q)\n"), stdout);
 	fputs(USAGE_SEPARATOR, stdout);
 	fprintf(stdout, USAGE_HELP_OPTIONS(31));
 	fprintf(stdout, USAGE_MAN_TAIL("getopt(1)"));
-- 
2.51.0