]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
textual: standardize synopsis for login, and improve an error message
authorBenno Schulenberg <bensberg@justemail.net>
Wed, 29 May 2013 17:46:23 +0000 (19:46 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 7 Jun 2013 09:31:33 +0000 (11:31 +0200)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
login-utils/login.c

index 554c46d4c190b805cfce571f868fa394706f812e..c3d07bd4522e818700f02e0c5dd8048d27e662ff 100644 (file)
@@ -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;