]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lslocks: cleanup --list-columns
authorKarel Zak <kzak@redhat.com>
Wed, 6 Dec 2023 11:26:39 +0000 (12:26 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Dec 2023 11:35:51 +0000 (12:35 +0100)
commitff578e0a4001ec022f81334b4fb974e58a2ee5fa
treea5db7b42377af5d4409a07ff74eaa975efb6c417
parent79d78a3312353d55974c1e92293a408a0ac3db9f
lslocks: cleanup --list-columns

* remove "Available columns" from --help
* remove dependence on command-line options order ("-H -J" vs. "-J -H")
* remove global variable shadowing for 'raw' and 'json'
* keep --list-columns in "help & version block" in usage() output

References: https://github.com/util-linux/util-linux/pull/2602
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lslocks.c