提交 2636f508 编写于 作者: O Osier Yang 提交者: Eric Blake

virsh: Remove redundant optional option for cmdHelp

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
上级 966a1bfe
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册