diff options
author | Benno Schulenberg | 2012-02-06 17:48:25 +0100 |
---|---|---|
committer | Karel Zak | 2013-01-25 11:47:33 +0100 |
commit | 5cc224f55217e5ce50d5693ef34f604c0929466d (patch) | |
tree | 1a487c055df87530c9b6a682d7beac5bb2ab4f11 /sys-utils/renice.c | |
parent | renice: correct the usage synopsis, and improve help text (diff) | |
download | kernel-qcow2-util-linux-5cc224f55217e5ce50d5693ef34f604c0929466d.tar.gz kernel-qcow2-util-linux-5cc224f55217e5ce50d5693ef34f604c0929466d.tar.xz kernel-qcow2-util-linux-5cc224f55217e5ce50d5693ef34f604c0929466d.zip |
renice: accept also -V for --version, and document it
Also improve the man page.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'sys-utils/renice.c')
-rw-r--r-- | sys-utils/renice.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys-utils/renice.c b/sys-utils/renice.c index aeede1813..f4014359f 100644 --- a/sys-utils/renice.c +++ b/sys-utils/renice.c @@ -65,7 +65,7 @@ static void __attribute__((__noreturn__)) usage(FILE *out) " -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); + " -V, --version display version information and exit\n"), out); fputs(_("\nFor more information see renice(1).\n"), out); @@ -73,9 +73,8 @@ static void __attribute__((__noreturn__)) usage(FILE *out) } /* - * Change the priority (nice) of processes - * or groups of processes which are already - * running. + * Change the priority (the nice value) of processes + * or groups of processes which are already running. */ int main(int argc, char **argv) @@ -98,8 +97,10 @@ main(int argc, char **argv) usage(stdout); if (strcmp(*argv, "-v") == 0 || + strcmp(*argv, "-V") == 0 || strcmp(*argv, "--version") == 0) { - printf(_("renice from %s\n"), PACKAGE_STRING); + printf(_("%s from %s\n"), + program_invocation_short_name, PACKAGE_STRING); exit(EXIT_SUCCESS); } } |