]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
getopt: (usage) make the description of -U fit within 80 columns
authorBenno Schulenberg <bensberg@telfort.nl>
Thu, 18 Sep 2025 08:57:02 +0000 (10:57 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 23 Sep 2025 12:07:09 +0000 (14:07 +0200)
(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 <bensberg@telfort.nl>
misc-utils/getopt.c

index 180313cb4ef29318c5fc8c42f9f564f1879b3c66..68dba4597e382f38d7db7a9c246db7ed3c9ccc5f 100644 (file)
@@ -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)"));