]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: suppress aliases in group help
authorEric Blake <eblake@redhat.com>
Fri, 26 Apr 2013 10:20:29 +0000 (04:20 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 26 Apr 2013 11:45:11 +0000 (05:45 -0600)
'virsh help | grep nodedev-det' shows only nodedev-detach, but
'virsh help nodedev | grep nodedev-det' also shows the old alias
nodedev-dettach that we intentionally hid in commit af3f9aab.

See also commit 787f4fe and this bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=956966

* tools/virsh.c (vshCmdGrpHelp): Copy suppression of vshCmdHelp.

Signed-off-by: Eric Blake <eblake@redhat.com>
tools/virsh.c

index 4cd93ca717c30cad5473270d01a79db2b24364d3..6ec2f7b8072292cd1d31be10ab56a9a1ddbada97 100644 (file)
@@ -1177,6 +1177,8 @@ vshCmdGrpHelp(vshControl *ctl, const char *grpname)
                  grp->keyword);
 
         for (cmd = grp->commands; cmd->name; cmd++) {
+            if (cmd->flags & VSH_CMD_FLAG_ALIAS)
+                continue;
             vshPrint(ctl, "    %-30s %s\n", cmd->name,
                      _(vshCmddefGetInfo(cmd, "help")));
         }