]> git.ipfire.org Git - thirdparty/util-linux.git/commit
irqtop: use standard 'always/never' arguments instead of 'enable/disable'
authorBenno Schulenberg <bensberg@telfort.nl>
Fri, 2 May 2025 12:22:41 +0000 (14:22 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 5 May 2025 08:45:15 +0000 (10:45 +0200)
commit6b3687403a35a20e304fbdfb6e345775a7c8ec57
tree932dbedbf976f0a49a792a8ba1013340a1dc8c2b
parent0e4f4f6f9e0c165b04c5663091548a342cc2f2ec
irqtop: use standard 'always/never' arguments instead of 'enable/disable'

Most other util-linux tools that accept the option argument "auto"
additionally accept "always" and "never", not "enable" / "disable".

So, make option --cpu-stat accept those standard words (besides the
deviant ones), and adjust the documentation to use the standard words.

Furthermore, make --cpu-stat accept also "on", "off", "yes", "no",
"1", and "0", to allow the user to use shorter words.  The per-CPU
stats can now be suppressed with a succinct: `irqtop -c0`.

CC: Zhenwei Pi <pizhenwei@bytedance.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
bash-completion/irqtop
sys-utils/irqtop.1.adoc
sys-utils/irqtop.c