]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
renice: reorder usage() option descriptions
authorSami Kerola <kerolasa@iki.fi>
Sun, 14 Sep 2014 10:12:58 +0000 (11:12 +0100)
committerSami Kerola <kerolasa@iki.fi>
Fri, 19 Sep 2014 18:31:13 +0000 (19:31 +0100)
Make the Usage: and Options: sections to be in same order, which I found
to be quicker to use than alphabetical order.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/renice.c

index 994c9ded41739a89b5fd478802f75a777e89b299..100f6a5349a696cc61f230be90640b68c0b5e954 100644 (file)
@@ -63,12 +63,13 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
                " %1$s [-n] <priority>  -u|--user <user>...\n"),
                program_invocation_short_name);
        fputs(USAGE_OPTIONS, 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(_(" -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(USAGE_SEPARATOR, out);
+       fputs(USAGE_HELP, out);
+       fputs(USAGE_VERSION, out);
        fprintf(out, USAGE_MAN_TAIL("renice(1)"));
        exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
 }