]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sfdisk: (man) do not use the common 'include' for --help and --version
authorBenno Schulenberg <bensberg@telfort.nl>
Tue, 9 Sep 2025 15:12:08 +0000 (17:12 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 10 Sep 2025 08:39:14 +0000 (10:39 +0200)
Anomalously, `sfdisk` uses -v for --version instead of the standard
uppercase -V.  In `sfdisk` -V means --verify.

This effectively reverts commit 82d0bfe59a from last week, and
adds a comment to try and prevent the mistake in the future.

CC: Mario Blättermann <mario.blaettermann@gmail.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
disk-utils/sfdisk.8.adoc

index 01bcfbfff4dc3bcbb8720e9f75ebf668e7eaac86..7d5db422e6a5bd4d60764c1fb45a7f5d4088851a 100644 (file)
@@ -239,7 +239,13 @@ Wipe filesystem, RAID and partition-table signatures from the device, in order t
 *-W*, *--wipe-partitions* _when_::
 Wipe filesystem, RAID and partition-table signatures from a newly created partition, in order to avoid possible collisions. The argument _when_ can be *auto*, *never* or *always*. When this option is not given, the default is *auto*, in which case signatures are wiped only when in interactive mode and after confirmation by user. In all cases detected signatures are reported by warning messages after a new partition is created. See also *wipefs*(8) command.
 
-include::man-common/help-version.adoc[]
+*-h*, *--help*::
+Display help text and exit.
+
+*-v*, *--version*::
+Display version and exit.
+
+// Do not include::man-common/help-version.adoc[], as -V is not --version.
 
 == INPUT FORMATS