]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
textual: use angular brackets around each individual argument
authorBenno Schulenberg <bensberg@justemail.net>
Mon, 22 Sep 2014 20:15:31 +0000 (22:15 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 1 Oct 2014 07:37:02 +0000 (09:37 +0200)
In usage texts each word that is an argument should be marked
separately with angular brackets.  Also add a translator comment.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
sys-utils/renice.c

index 100f6a5349a696cc61f230be90640b68c0b5e954..c96e39ad1f9fdc8d5881525fbec9b0baf99a1780 100644 (file)
@@ -66,7 +66,7 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
        fputs(_(" -n, --priority <num>   specify the nice increment value\n"), out);
        fputs(_(" -p, --pid <id>         interpret argument as process ID (default)\n"), out);
        fputs(_(" -g, --pgrp <id>        interpret argument as process group ID\n"), out);
-       fputs(_(" -u, --user <name|id>   interpret argument as username or user ID\n"), out);
+       fputs(_(" -u, --user <name>|<id> interpret argument as username or user ID\n"), out);
        fputs(USAGE_SEPARATOR, out);
        fputs(USAGE_HELP, out);
        fputs(USAGE_VERSION, out);
@@ -176,6 +176,8 @@ int main(int argc, char **argv)
                } else {
                        who = strtol(*argv, &endptr, 10);
                        if (who < 0 || *endptr) {
+                               /* TRANSLATORS: The first %s is one of the above
+                                * three ID names. Read: "bad value for %s: %s" */
                                warnx(_("bad %s value: %s"), idtype[which], *argv);
                                errs = 1;
                                continue;