]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: Remove redundant optional option for cmdHelp
authorOsier Yang <jyang@redhat.com>
Fri, 3 Dec 2010 07:34:23 +0000 (15:34 +0800)
committerEric Blake <eblake@redhat.com>
Fri, 3 Dec 2010 15:22:17 +0000 (08:22 -0700)
Remove the optional option "group", as cmdHelp should accepts
only one option ("virsh help" supports both command and command
group now, and user rarely uses the options, so it doesn't matter
much for it being longer, :-)

* tools/virsh.c

tools/virsh.c

index 31de80f94fe94155a406dbf549e8a735c697c159..3e1bde1a90e332d984d35b8a7d64a912c3f9f2f7 100644 (file)
@@ -569,8 +569,7 @@ static const vshCmdInfo info_help[] = {
 };
 
 static const vshCmdOptDef opts_help[] = {
-    {"command", VSH_OT_DATA, 0, N_("Prints global help or command specific help.")},
-    {"group", VSH_OT_DATA, 0, N_("Prints global help or help for a group of related commands.")},
+    {"command", VSH_OT_DATA, 0, N_("Prints global help, command specific help, or help for a group of related commands")},
     {NULL, 0, 0, NULL}
 };
 
@@ -583,9 +582,6 @@ cmdHelp(vshControl *ctl, const vshCmd *cmd)
 
     name = vshCommandOptString(cmd, "command", NULL);
 
-    if (!name)
-        name = vshCommandOptString(cmd, "group", NULL);
-
     if (!name) {
         const vshCmdGrp *grp;
         const vshCmdDef *def;