]> git.ipfire.org Git - thirdparty/util-linux.git/commit
swapon: make options --help and --version override --summary
authorBenno Schulenberg <bensberg@telfort.nl>
Thu, 13 Mar 2025 14:51:49 +0000 (15:51 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Mar 2025 11:19:15 +0000 (12:19 +0100)
commitc003ca78ca5d65922a6e2454ede5d2ea470e42d7
tree6ae5c6c7148fb4ccdead62588579ee7a149bd8ff
parent63b23d7f27f8daf0edac760cb319b6441b6c2195
swapon: make options --help and --version override --summary

When -h or --help is among the given options, most utilities
print a help text, ignoring all other options and arguments.
Make `swapon --summary --help` conform to this general pattern.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
(cherry picked from commit ad9b9058721a7322f702d5c9beea6e77cd923377)
sys-utils/swapon.c