]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sfdisk: add show-pt-geometry to usage() and sfdisk.8
authorKarel Zak <kzak@redhat.com>
Mon, 8 Aug 2016 10:15:47 +0000 (12:15 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Aug 2016 10:15:47 +0000 (12:15 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/sfdisk.8
disk-utils/sfdisk.c

index 69dc96cd768e347a8ab81bb57c7468d57cbce2cf..adbd138901d226792fe2d3ce0a2524673df5cf64 100644 (file)
@@ -79,7 +79,9 @@ Dump the partitions of a device in a format that is usable as input to \fBsfdisk
 See the section \fBBACKING UP THE PARTITION TABLE\fR.
 .TP
 .BR \-g , " \-\-show\-geometry " [ \fIdevice ...]
-List the geometry of all or the specified devices.
+List the geometry of all or the specified devices. For backward
+compatibility the deprecated option \fB\-\-show\-pt\-geometry\fR have the same
+meaning as this one.
 .TP
 .BR \-J , " \-\-json " \fIdevice\fR
 Dump the partitions of a device in JSON format.  Note that \fBsfdisk\fR is
index 589cca99fe6bbdce14421fe86098901f7e78b984..6613a4fd960ba72667aa49a4165d150a0c756cac 100644 (file)
@@ -1820,6 +1820,7 @@ static void __attribute__ ((__noreturn__)) usage(FILE *out)
        fputs(_(" -X, --label <name>        specify label type (dos, gpt, ...)\n"), out);
        fputs(_(" -Y, --label-nested <name> specify nested label type (dos, bsd)\n"), out);
        fputs(USAGE_SEPARATOR, out);
+       fputs(_(" -G, --show-pt-geometry    deprecated, alias to --show-geometry\n"), out);
        fputs(_(" -L, --Linux               deprecated, only for backward compatibility\n"), out);
        fputs(_(" -u, --unit S              deprecated, only sector unit is supported\n"), out);
 
@@ -1886,7 +1887,6 @@ int main(int argc, char *argv[])
                { "reorder", no_argument,       NULL, 'r' },
                { "show-size", no_argument,     NULL, 's' },
                { "show-geometry", no_argument, NULL, 'g' },
-               { "show-pt-geometry", no_argument, NULL, 'G' },
                { "quiet",   no_argument,       NULL, 'q' },
                { "verify",  no_argument,       NULL, 'V' },
                { "version", no_argument,       NULL, 'v' },
@@ -1898,6 +1898,7 @@ int main(int argc, char *argv[])
                { "part-type",  no_argument,    NULL, OPT_PARTTYPE },
                { "part-attrs", no_argument,    NULL, OPT_PARTATTRS },
 
+               { "show-pt-geometry", no_argument, NULL, 'G' },         /* deprecated */
                { "unit",    required_argument, NULL, 'u' },
                { "Linux",   no_argument,       NULL, 'L' },            /* deprecated */