]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgtop: fix confusion in --help
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Dec 2025 14:23:12 +0000 (15:23 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 27 Feb 2026 20:05:57 +0000 (20:05 +0000)
commit2c86906e7f1f6fc735134bec400e5f14fb64d722
tree6b42ac48bf952b51d73deeacfe0f47b7b2f16582
parent2fd4df60a2c72f7554d55e608fd6f77d1a0bcad6
cgtop: fix confusion in --help

When we say '-n --iterations=N' in --help, this means that the program
can be invoked with '-n N' or '--iterations=N' or '--iterations N'.
(The short option is specified without the argument.)

Here we tried to use '-p --order=path' to mean that the program can be
invoked with '-p' or '--order=path', but that is incompatible with the
established convention.

Also, indicate that the arg to --cpu is optional.

(cherry picked from commit cb406988ac587a0f2b75948f3fab860005d6bc76)
(cherry picked from commit 8523627f2197ef6d448d97832b946e42cd414fc3)
(cherry picked from commit 7f08d7160bbef89aac3df7f7fe93689965aaec6b)
src/cgtop/cgtop.c