textual: standardize synopsis for login, and improve an error message
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
This commit is contained in:
parent
9ba27b269e
commit
63578526a1
|
@ -1277,7 +1277,7 @@ int main(int argc, char **argv)
|
|||
case 'h':
|
||||
if (getuid()) {
|
||||
fprintf(stderr,
|
||||
_("login: -h for super-user only.\n"));
|
||||
_("login: -h is for superuser only\n"));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
init_remote_info(&cxt, optarg);
|
||||
|
@ -1292,7 +1292,7 @@ int main(int argc, char **argv)
|
|||
return EXIT_SUCCESS;
|
||||
case '?':
|
||||
default:
|
||||
fprintf(stderr, _("usage: login [ -p ] [ -h host ] [ -H ] [ -f username | username ]\n"));
|
||||
fprintf(stderr, _("Usage: login [-p] [-h <host>] [-H] [[-f] <username>]\n"));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
argc -= optind;
|
||||
|
|
Loading…
Reference in New Issue