]> 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>
Wed, 10 Aug 2016 11:17:44 +0000 (13:17 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/sfdisk.8
disk-utils/sfdisk.c

index aa7750b634903d0f7a6e5d53b3eec7e3260fdeae..bbcdd72119f435aa0f6466be4c481602924f29dd 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 de231403b71961dbc188c6937358e1d5881783e0..f7afd9f44a62738dafea86cdd025ad058dc2b52d 100644 (file)
@@ -1771,6 +1771,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);
 
@@ -1836,7 +1837,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' },
@@ -1847,6 +1847,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 */