]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
chrt: (man,usage) mark the priority value as optional in the synopses
authorBenno Schulenberg <bensberg@telfort.nl>
Tue, 5 Aug 2025 09:24:41 +0000 (11:24 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 7 Aug 2025 09:20:35 +0000 (11:20 +0200)
The priority value is optional in some cases, so it cannot be listed
as required.

CC: Madadi Vineeth Reddy <vineethr@linux.ibm.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
schedutils/chrt.1.adoc
schedutils/chrt.c

index 3f67b13bb2b047dd21b2c2ca0a358144c22115a5..c8278463aa52574d08bec326f217078436b940e3 100644 (file)
@@ -38,7 +38,7 @@ chrt - manipulate the real-time attributes of a process
 
 == SYNOPSIS
 
-*chrt* [options] _priority command_ [_argument_...]
+*chrt* [options] [_priority_] _command_ [_argument_...]
 
 *chrt* [options] *--pid* [_priority_] _PID_
 
index e07284e4181d1cc5e51957d2f3154257974e3b24..de1898160b9fedaaa110b360f02b9f9067046c9e 100644 (file)
@@ -60,8 +60,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Show or change the real-time scheduling attributes of a process.\n"), out);
        fputs(USAGE_SEPARATOR, out);
        fputs(_("Set policy:\n"
-               " chrt [options] <priority> <command> [<argument>...]\n"
-               " chrt [options] --pid <priority> <PID>\n"), out);
+               " chrt [options] [<priority>] <command> [<argument>...]\n"
+               " chrt [options] --pid [<priority>] <PID>\n"), out);
        fputs(USAGE_SEPARATOR, out);
        fputs(_("Get policy:\n"
                " chrt --pid <PID>\n"), out);