]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
col: fix --help short option in usage() output
authorSami Kerola <kerolasa@iki.fi>
Wed, 14 Oct 2020 20:22:45 +0000 (21:22 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 16 Oct 2020 09:13:04 +0000 (11:13 +0200)
The col(1) is using unusual -H as --help short option.  The -h is used for
--tabs (horizontal tab?) in this implementation.

Fixes: 62dee0176a0c8e687d9ff0cb87342a0f8b893aaa
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/col.c

index e35e581cd2bd9ebf67d09f85773391ec619e1907..6963eb68f89a95ac91a165498dea662f4a09d905 100644 (file)
@@ -181,7 +181,8 @@ static void __attribute__((__noreturn__)) usage(void)
                " -x, --spaces           convert tabs to spaces\n"
                " -l, --lines NUM        buffer at least NUM lines\n"
                ));
-       printf(USAGE_HELP_OPTIONS(24));
+       printf( " -H, --help             %s\n", USAGE_OPTSTR_HELP);
+       printf( " -v, --version          %s\n", USAGE_OPTSTR_VERSION);
 
        printf(USAGE_MAN_TAIL("col(1)"));
        exit(EXIT_SUCCESS);