Signed-off-by: Sami Kerola <kerolasa@iki.fi>
to tell
.B login
that printing the hostname should be suppressed in the login: prompt.
+.TP
+.B \-V
+Print version and exit.
.SH CONFIG FILE ITEMS
.B login
* -h is used by other servers to pass the name of the remote
* host to login so that it may be placed in utmp and wtmp
*/
- while ((c = getopt(argc, argv, "fHh:p")) != -1)
+ while ((c = getopt(argc, argv, "fHh:pV")) != -1)
switch (c) {
case 'f':
cxt.noauth = 1;
cxt.keep_env = 1;
break;
+ case 'V':
+ printf(UTIL_LINUX_VERSION);
+ return EXIT_SUCCESS;
case '?':
default:
fprintf(stderr, _("usage: login [ -p ] [ -h host ] [ -H ] [ -f username | username ]\n"));