]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
chfn: fix usage() regression
authorSami Kerola <kerolasa@iki.fi>
Sun, 14 Dec 2014 12:31:11 +0000 (12:31 +0000)
committerSami Kerola <kerolasa@iki.fi>
Fri, 19 Dec 2014 09:11:03 +0000 (09:11 +0000)
Commit db433bf737a5fd4e1c7cca5e3603934743eebd1c changed -u for --help to
-h, that is not true.  The -h is short hand for --home-phone.  And the
--version is accompanied with -v not -V.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
login-utils/chfn.c

index 4746927c8240f02a955cea7702f55e47c6595315..9833591e87d7a808285eccca56eab9d7ae128786 100644 (file)
@@ -77,8 +77,8 @@ static void __attribute__((__noreturn__)) usage(FILE *fp)
        fputs(_(" -p, --office-phone <phone>   office phone number\n"), fp);
        fputs(_(" -h, --home-phone <phone>     home phone number\n"), fp);
        fputs(USAGE_SEPARATOR, fp);
-       fputs(USAGE_HELP, fp);
-       fputs(USAGE_VERSION, fp);
+       fputs(_(" -u, --help     display this help and exit\n"), fp);
+       fputs(_(" -v, --version  output version information and exit\n"), fp);
        fprintf(fp, USAGE_MAN_TAIL("chfn(1)"));
        exit(fp == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
 }