]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsirq: mark --json and --pairs options mutually exclusive
authorSami Kerola <kerolasa@iki.fi>
Fri, 6 Mar 2020 20:14:06 +0000 (20:14 +0000)
committerSami Kerola <kerolasa@iki.fi>
Sat, 7 Mar 2020 06:38:57 +0000 (06:38 +0000)
commit968a50b30ebd75c56930b6a46e4a75a17476c433
tree6af05aae874ef53ba885ede672b67cf22091ce06
parent723ec12457d44d78e2ee6d7ca4f522aaf4f74353
lsirq: mark --json and --pairs options mutually exclusive

Before this change --pairs option would always win over --json.  That is
unnecessarily confusing, it is much better to disallow combination that does
not make sense.

Notice that the --noheadings in combination with --json or --pairs will not
cause any effect.  In strictest possible understanding --noheadings should
also be exclusive.  Looking from more relaxed point of view neither --json
nor --pairs has heading, so excluding is not necessary because --noheading
is happening already.

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