]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: fix usage(), -l [<disk>]
authorKarel Zak <kzak@redhat.com>
Tue, 19 Nov 2013 17:30:40 +0000 (18:30 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 19 Nov 2013 17:30:40 +0000 (18:30 +0100)
Add square brackets, <disk> is optional for -l.

Reported-by: Phillip Susi <psusi@ubuntu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/fdisk.c

index 874f9d138b2f1f8f007f42e3361234fcdb047358..7afd6420bc85a49a1169db1d7999a44b81f20873 100644 (file)
@@ -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);