virsh: Fix --help problem for domxml-to-native DOMAIN COMMAND

Resolves a bug in domxml-to-native command option, so that the
following command displays the help information correctly:
'virsh domxml-to-native --help'.

Signed-off-by: Daniel Liu <srwx4096@gmail.com>
Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
This commit is contained in:
Daniel Liu 2017-06-27 11:54:50 -04:00 committed by John Ferlan
parent 78fc843c7b
commit fdeac7a05f

View File

@ -9857,12 +9857,12 @@ static const vshCmdOptDef opts_domxmltonative[] = {
.help = N_("target config data type format") .help = N_("target config data type format")
}, },
{.name = "domain", {.name = "domain",
.type = VSH_OT_DATA, .type = VSH_OT_STRING,
.flags = VSH_OFLAG_REQ_OPT, .flags = VSH_OFLAG_REQ_OPT,
.help = N_("domain name, id or uuid") .help = N_("domain name, id or uuid")
}, },
{.name = "xml", {.name = "xml",
.type = VSH_OT_DATA, .type = VSH_OT_ARGV,
.help = N_("xml data file to export from") .help = N_("xml data file to export from")
}, },
{.name = NULL} {.name = NULL}