]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
renice: correct the usage synopsis, and improve help text
authorBenno Schulenberg <bensberg@justemail.net>
Mon, 6 Feb 2012 15:44:23 +0000 (16:44 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 25 Jan 2013 10:47:30 +0000 (11:47 +0100)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
sys-utils/renice.c

index f5d51b66a1a8dec591f7a6d3d4ba569ec28d0071..aeede181383b80ee04214f3f7f93ef2289283623 100644 (file)
@@ -54,18 +54,18 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
 {
        fputs(_("\nUsage:\n"), out);
        fprintf(out,
-             _(" %1$s [-n] <priority> [-p] <pid> [<pid>  ...]\n"
-               " %1$s [-n] <priority>  -g <pgrp> [<pgrp> ...]\n"
-               " %1$s [-n] <priority>  -u <user> [<user> ...]\n"),
+             _(" %1$s [-n] <priority> [-p|--pid] <pid>...\n"
+               " %1$s [-n] <priority>  -g|--pgrp <pgid>...\n"
+               " %1$s [-n] <priority>  -u|--user <user>...\n"),
                program_invocation_short_name);
 
        fputs(_("\nOptions:\n"), out);
-       fputs(_(" -g, --pgrp <id>        interpret as process group ID\n"
-               " -h, --help             print help\n"
-               " -n, --priority <num>   set the nice increment value\n"
-               " -p, --pid <id>         force to be interpreted as process ID\n"
-               " -u, --user <name|id>   interpret as username or user ID\n"
-               " -v, --version          print version\n"), out);
+       fputs(_(" -g, --pgrp <id>        interpret argument as process group ID\n"
+               " -n, --priority <num>   specify the nice increment value\n"
+               " -p, --pid <id>         interpret argument as process ID (default)\n"
+               " -u, --user <name|id>   interpret argument as username or user ID\n"
+               " -h, --help             display help text and exit\n"
+               " -v, --version          display version information and exit\n"), out);
 
        fputs(_("\nFor more information see renice(1).\n"), out);