]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Fix --help problem for domxml-to-native DOMAIN COMMAND
authorDaniel Liu <srwx4096@gmail.com>
Tue, 27 Jun 2017 15:54:50 +0000 (11:54 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 27 Jun 2017 20:09:59 +0000 (16:09 -0400)
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>
tools/virsh-domain.c

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