login: add --help text

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
This commit is contained in:
Ruediger Meier 2017-06-25 21:58:12 +02:00
parent a861538cc8
commit 62cd916f1e
1 changed files with 8 additions and 0 deletions

View 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);
}