]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sfdisk: add missing stuff to usage()
authorKarel Zak <kzak@redhat.com>
Thu, 11 Sep 2014 12:23:50 +0000 (14:23 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 7 Oct 2014 12:55:31 +0000 (14:55 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/sfdisk.c

index c9e934e882c40f0a3a130d838e9decac5f85adae..6f3be15f000ac71cf65bd1315c5228dd8d3e895d 100644 (file)
@@ -660,7 +660,8 @@ static void __attribute__ ((__noreturn__)) usage(FILE *out)
        fputs(USAGE_HEADER, out);
 
        fprintf(out,
-             _(" %1$s [options] --dump <device>\n"
+             _(" %1$s <device> [[-N] <partno>]\n"
+               " %1$s [options] --dump <device>\n"
                " %1$s [options] --list [<device> ...]\n"
                " %1$s [options] --activate <device> [<partno> ...]\n"),
              program_invocation_short_name);
@@ -669,6 +670,8 @@ static void __attribute__ ((__noreturn__)) usage(FILE *out)
        fputs(_(" -a, --activate       mark MBR partitions as bootable\n"), out);
        fputs(_(" -d, --dump           dump partition table (suitable for later input)\n"), out);
        fputs(_(" -l, --list           list partitions of each device\n"), out);
+       fputs(_(" -N, --partno <num>   specify partition number\n"), out);
+       fputs(_(" -s, --show-size      list the size of all or specified device\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
        fputs(USAGE_HELP, out);