]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
renice: in usage text, condense the oververbose description of option -n
authorBenno Schulenberg <bensberg@telfort.nl>
Thu, 17 Apr 2025 09:48:20 +0000 (11:48 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 24 Apr 2025 09:51:45 +0000 (11:51 +0200)
The --help text should be concise: it serves only as a reminder of how
things work.  When a more wordy explanation is needed, there is always
the man page (as every --help text says at the end).

CC: David Anes <david.anes@suse.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
sys-utils/renice.c

index eac104db306f5ee77d92df85626e40591d9dbf6b..d2139a6bfa6f7386b6e0881f90e94520d78efa98 100644 (file)
@@ -70,10 +70,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Alter the priority of running processes.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       fputs(_(" -n <num>               specify the nice value;\n"
-               "                          if POSIXLY_CORRECT flag is set in environment,\n"
-               "                          then the priority is 'relative' to current\n"
-               "                          process priority; otherwise it is 'absolute'\n"), out);
+       fputs(_(" -n <num>               specify the 'absolute' nice value,\n"
+               "                          but 'relative' when POSIXLY_CORRECT is set\n"), out);
        fputs(_(" --priority <num>       specify the 'absolute' nice value\n"), out);
        fputs(_(" --relative <num>       specify the 'relative' nice value\n"), out);
        fputs(_(" -p, --pid              interpret arguments as process ID (default)\n"), out);