]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
docs: add -h/--help and -V/--version to three man pages that lacked them
authorBenno Schulenberg <bensberg@telfort.nl>
Mon, 14 Apr 2025 09:45:32 +0000 (11:45 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 15 Apr 2025 11:53:43 +0000 (13:53 +0200)
Also, harmonize the wording and placement of these options in
a few other man pages, and use an `include` where possible.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
disk-utils/fsck.8.adoc
disk-utils/sfdisk.8.adoc
misc-utils/kill.1.adoc
misc-utils/lastlog2.8.adoc
sys-utils/blkpr.8.adoc
sys-utils/setsid.1.adoc
sys-utils/tunelp.8.adoc
text-utils/line.1.adoc

index bf6a0ec26735e368533b3f70d431aee176d380ed..8631bcd795d1213521c87ccd72b3243f2e2accdf 100644 (file)
@@ -113,7 +113,7 @@ Produce verbose output, including all filesystem-specific commands that are exec
 Display help text and exit.
 
 *--version*::
-Display version information and exit.
+Display version and exit.
 
 == FILESYSTEM SPECIFIC OPTIONS
 
index 0bd04ba3eb7b6d5c012ed6bba46f2732d8d1d84f..d61a031c2c401d736f4773658776b6ee691f01ec 100644 (file)
@@ -226,12 +226,12 @@ 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.
 
-*-v*, *--version*::
-Display version information and exit.
-
 *-h*, *--help*::
 Display help text and exit.
 
+*-v*, *--version*::
+Display version and exit.
+
 == INPUT FORMATS
 
 *sfdisk* supports two input formats and generic header lines.
index 5421fe16f5fde70633736a9902febce7b8b0942d..76027fb52dddfac1dc2f7866398f1b8eb629ac84 100644 (file)
@@ -104,6 +104,8 @@ Ignored: TERM TSTP TTIN TTOU
 Caught: HUP INT PIPE ALRM CHLD WINCH
 ....
 
+include::man-common/help-version.adoc[]
+
 == EXIT STATUS
 
 *kill* has the following exit status values:
index 5e3289db74ebb1b0df520e6a08d9ac3277b80fb4..fb0cf52c91240acee4ab21a62abcdde1f91093cc 100644 (file)
@@ -44,9 +44,6 @@ Clear last login record of a user. This option can be used only together with
 *-d*, *--database _FILE_::
 Use _FILE_ as lastlog2 database.
 
-*-h*, *--help*::
-Display help message and exit.
-
 *-i*, *--import* _FILE_::
 Import data from old lastlog file _FILE_. Existing entries in the lastlog2
 database will be overwritten.
@@ -67,8 +64,11 @@ Print only last login records more recent than _DAYS_.
 *-u*, *--users* _LOGINS_::
 Print only the last login record of the user _LOGIN_.
 
+*-h*, *--help*::
+Display help text and exit.
+
 *-v*, *--version*::
-Print version number and exit.
+Display version and exit.
 
 If the user has never logged in the message **Never logged in** will be displayed
 in the latest login time row.
index db2b8a0a96ede6d0bd3d154effb3b4ff32dc2b86..98983b7796b458a50d5a45cef64d546f008cf83d 100644 (file)
@@ -40,11 +40,7 @@ Supported flag is *ignore-key*.
 Supported types are *write-exclusive*, *exclusive-access*, *write-exclusive-reg-only*,
 *exclusive-access-reg-only*, *write-exclusive-all-regs*, and *exclusive-access-all-regs*.
 
-*-V*, *--version*::
-Display version information and exit.
-
-*-h*, *--help*::
-Display help text and exit.
+include::man-common/help-version.adoc[]
 
 == AUTHORS
 
index 3eddcab79692c8d38df80bfbd266acdf2802d854..5cf49a5978f09ecd31a3753904a57e174f6fedf6 100644 (file)
@@ -31,11 +31,7 @@ Always create a new process.
 *-w*, *--wait*::
 Wait for the execution of the program to end, and return the exit status of this program as the exit status of *setsid*.
 
-*-V*, *--version*::
-Display version information and exit.
-
-*-h*, *--help*::
-Display help text and exit.
+include::man-common/help-version.adoc[]
 
 == AUTHORS
 
index 37140b31f136d9b114effeacb2e8a28ef92da221..c2787889dffe126af70ce5e7adecf4c844ee7464 100644 (file)
@@ -56,6 +56,8 @@ This option resets the port. It requires a Linux kernel version of 1.1.80 or lat
 *-q*, *--print-irq* _<on|off>_::
 This option sets printing the display of the current IRQ setting.
 
+include::man-common/help-version.adoc[]
+
 == FILES
 
 _/dev/lp?_,
index bed0d0d31cae7faba7406f5b950243a0493248eb..5ad85812d09e75a60e1442640733dc172a8249d3 100644 (file)
@@ -17,12 +17,16 @@ line - read one line
 
 == SYNOPSIS
 
-*line*
+*line* [*-h*|*-V*]
 
 == DESCRIPTION
 
 The utility *line* copies one line (up to a newline) from standard input to standard output. It always prints at least a newline and returns an exit status of 1 on EOF or read error.
 
+== OPTIONS
+
+include::man-common/help-version.adoc[]
+
 == SEE ALSO
 
 *read*(1p)