summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisk.c
diff options
context:
space:
mode:
authorKarel Zak2013-11-19 18:30:40 +0100
committerKarel Zak2013-11-19 18:30:40 +0100
commit38d663a6b30781609a8fdc0e02c0b4b76a2ed240 (patch)
treea60884b6adccd1a3c1a7beb1badca56f3a4fada3 /fdisks/fdisk.c
parentumount: fix umount by tag for non-roots (diff)
downloadkernel-qcow2-util-linux-38d663a6b30781609a8fdc0e02c0b4b76a2ed240.tar.gz
kernel-qcow2-util-linux-38d663a6b30781609a8fdc0e02c0b4b76a2ed240.tar.xz
kernel-qcow2-util-linux-38d663a6b30781609a8fdc0e02c0b4b76a2ed240.zip
fdisk: fix usage(), -l [<disk>]
Add square brackets, <disk> is optional for -l. Reported-by: Phillip Susi <psusi@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk.c')
-rw-r--r--fdisks/fdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c
index 874f9d138..7afd6420b 100644
--- a/fdisks/fdisk.c
+++ b/fdisks/fdisk.c
@@ -50,8 +50,8 @@ static void __attribute__ ((__noreturn__)) usage(FILE *out)
fputs(USAGE_HEADER, out);
fprintf(out,
- _(" %1$s [options] <disk> change partition table\n"
- " %1$s [options] -l <disk> list partition table(s)\n"),
+ _(" %1$s [options] <disk> change partition table\n"
+ " %1$s [options] -l [<disk>] list partition table(s)\n"),
program_invocation_short_name);
fputs(USAGE_OPTIONS, out);