]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Apply macro for current VSH_OT_ARGV "domain" options
authorLin Ma <lma@suse.com>
Tue, 8 May 2018 14:20:36 +0000 (22:20 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 10 May 2018 08:01:15 +0000 (10:01 +0200)
Signed-off-by: Lin Ma <lma@suse.com>
tools/virsh-domain-monitor.c

index 071619d0e3e7ce8139eb1d499162ad1e4fc3872a..fa93f3a312cf771c9b9a034d47f3d98451f6204a 100644 (file)
@@ -1991,11 +1991,7 @@ static const vshCmdOptDef opts_domstats[] = {
      .type = VSH_OT_BOOL,
      .help = N_("add backing chain information to block stats"),
     },
-    {.name = "domain",
-     .type = VSH_OT_ARGV,
-     .flags = VSH_OFLAG_NONE,
-     .help = N_("list of domains to get stats for"),
-    },
+    VIRSH_COMMON_OPT_DOMAIN_OT_ARGV(N_("list of domains to get stats for"), 0),
     {.name = NULL}
 };