update-initramfs: Consistently show which options take arguments

The text in the manual page implies that -b needs an argument
but the usage summaries don't say that.

While we're at it, remove the brackets in '-k [version]', as
these suggest the version argument is optional.

Closes: #762768
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Ben Hutchings 2014-10-16 16:14:18 +02:00
parent 738678fcc4
commit 3862d9bfd5
2 changed files with 5 additions and 4 deletions

View File

@ -45,12 +45,12 @@ usage()
Usage: ${0} [OPTION]...
Options:
-k [version] Specify kernel version or 'all'
-k version Specify kernel version or 'all'
-c Create a new initramfs
-u Update an existing initramfs
-d Remove an existing initramfs
-t Take over a custom initramfs with this one
-b Set alternate boot directory
-b directory Set alternate boot directory
-v Be verbose
-h This message

View File

@ -10,7 +10,8 @@ update\-initramfs \- generate an initramfs image
.IR version ]
.RB [ \-t ]
.RB [ \-v ]
.RB [ \-b ]
.RB [ \-b
.IR directory ]
.RB [ \-h ]
.SH DESCRIPTION
The
@ -62,7 +63,7 @@ This option increases the amount of information you are given during
the chosen action.
.TP
\fB \-b
\fB \-b \fI directory
Set an different bootdir for the image creation.
.TP