summaryrefslogtreecommitdiffstats
path: root/sbin/geom
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2011-05-27 14:30:13 +0000
committerae <ae@FreeBSD.org>2011-05-27 14:30:13 +0000
commit3d3669b06b2a51212525b2152069b79de936e65c (patch)
tree832b3b667508bea49e998ba9badc22b4a93d0ad3 /sbin/geom
parent71dfa38e16389a752796137ef624a8bd45652e90 (diff)
downloadFreeBSD-src-3d3669b06b2a51212525b2152069b79de936e65c.zip
FreeBSD-src-3d3669b06b2a51212525b2152069b79de936e65c.tar.gz
Synchronize manpage's synopsis with program's usage. Since -l and -r
keys are mutually exclusive for the `gpart show` command, then mark them so. Requested by: ru
Diffstat (limited to 'sbin/geom')
-rw-r--r--sbin/geom/class/part/geom_part.c8
-rw-r--r--sbin/geom/class/part/gpart.83
2 files changed, 6 insertions, 5 deletions
diff --git a/sbin/geom/class/part/geom_part.c b/sbin/geom/class/part/geom_part.c
index 278030d..93b28ac 100644
--- a/sbin/geom/class/part/geom_part.c
+++ b/sbin/geom/class/part/geom_part.c
@@ -101,7 +101,7 @@ struct g_command PUBSYM(class_commands)[] = {
{ 'l', "label", G_VAL_OPTIONAL, G_TYPE_STRING },
{ 'f', "flags", GPART_FLAGS, G_TYPE_STRING },
G_OPT_SENTINEL },
- "[-a alignment] [-b start] [-s size] -t type [-i index] "
+ "-t type [-a alignment] [-b start] [-s size] [-i index] "
"[-l label] [-f flags] geom"
},
{ "backup", 0, gpart_backup, G_NULL_OPTS,
@@ -113,7 +113,7 @@ struct g_command PUBSYM(class_commands)[] = {
{ 'i', GPART_PARAM_INDEX, G_VAL_OPTIONAL, G_TYPE_NUMBER },
{ 'f', "flags", GPART_FLAGS, G_TYPE_STRING },
G_OPT_SENTINEL },
- "[-b bootcode] [-p partcode] [-i index] [-f flags] geom"
+ "[-b bootcode] [-p partcode -i index] [-f flags] geom"
},
{ "commit", 0, gpart_issue, G_NULL_OPTS,
"geom"
@@ -157,7 +157,7 @@ struct g_command PUBSYM(class_commands)[] = {
{ 'r', "show_rawtype", NULL, G_TYPE_BOOL },
{ 'p', "show_providers", NULL, G_TYPE_BOOL },
G_OPT_SENTINEL },
- "[-lrp] [geom ...]"
+ "[-l | -r] [-p] [geom ...]"
},
{ "undo", 0, gpart_issue, G_NULL_OPTS,
"geom"
@@ -175,7 +175,7 @@ struct g_command PUBSYM(class_commands)[] = {
{ 'i', GPART_PARAM_INDEX, NULL, G_TYPE_NUMBER },
{ 'f', "flags", GPART_FLAGS, G_TYPE_STRING },
G_OPT_SENTINEL },
- "[-a alignment] [-s size] -i index [-f flags] geom"
+ "-i index [-a alignment] [-s size] [-f flags] geom"
},
{ "restore", 0, gpart_restore, {
{ 'F', "force", NULL, G_TYPE_BOOL },
diff --git a/sbin/geom/class/part/gpart.8 b/sbin/geom/class/part/gpart.8
index 436a1a0..417ddf1 100644
--- a/sbin/geom/class/part/gpart.8
+++ b/sbin/geom/class/part/gpart.8
@@ -170,7 +170,8 @@ utility:
.\" ==== SHOW ====
.Nm
.Cm show
-.Op Fl lrp
+.Op Fl l | Fl r
+.Op Fl p
.Op Ar geom ...
.\" ==== UNDO ====
.Nm
OpenPOWER on IntegriCloud