]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
login: add --help text
authorRuediger Meier <ruediger.meier@ga-group.nl>
Sun, 25 Jun 2017 19:58:12 +0000 (21:58 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Tue, 27 Jun 2017 10:29:06 +0000 (12:29 +0200)
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
login-utils/login.c

index ee06d03e877a55a94cb91a0c3a52023ebfce8b55..64b41f4ebf085421c6226e10cb1f8a900a24e3d4 100644 (file)
@@ -1101,6 +1101,14 @@ static void __attribute__((__noreturn__)) usage(void)
        printf(_(" %s [-p] [-h <host>] [-H] [[-f] <username>]\n"), program_invocation_short_name);
        fputs(USAGE_SEPARATOR, stdout);
        fputs(_("Begin a session on the system.\n"), stdout);
+
+       fputs(USAGE_OPTIONS, stdout);
+       puts(_(" -p             do not destroy the environment"));
+       puts(_(" -f             skip a second login authentication"));
+       puts(_(" -h <host>      hostname to be used for utmp logging"));
+       puts(_(" -H             suppress hostname in the login prompt"));
+       printf("     --help     %s\n", USAGE_OPTSTR_HELP);
+       printf(" -V, --version  %s\n", USAGE_OPTSTR_VERSION);
        printf(USAGE_MAN_TAIL("login(1)"));
        exit(EXIT_SUCCESS);
 }