From: Sami Kerola Date: Wed, 14 Oct 2020 20:22:45 +0000 (+0100) Subject: col: fix --help short option in usage() output X-Git-Tag: v2.37-rc1~419 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=afbf8fe2230feb14151d23dfa1eea057da079fa3;p=thirdparty%2Futil-linux.git col: fix --help short option in usage() output 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 --- diff --git a/text-utils/col.c b/text-utils/col.c index e35e581cd2..6963eb68f8 100644 --- a/text-utils/col.c +++ b/text-utils/col.c @@ -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);