]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: domdisplay: options --all and --type are mutually exclusive
authorLin Ma <morecache@gmail.com>
Fri, 11 Sep 2020 07:06:15 +0000 (15:06 +0800)
committerJán Tomko <jtomko@redhat.com>
Sat, 12 Sep 2020 10:49:31 +0000 (12:49 +0200)
Signed-off-by: Lin Ma <lma@suse.de>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-domain.c

index 08496cc5bfdf0313e8a7c676237ed874a2864bfb..722d38db8e3a89a70acc10a7d433ac7639d0ac3c 100644 (file)
@@ -11522,6 +11522,8 @@ cmdDomDisplay(vshControl *ctl, const vshCmd *cmd)
     const char *xpath_fmt = "string(/domain/devices/graphics[@type='%s']/%s)";
     virSocketAddr addr;
 
+    VSH_EXCLUSIVE_OPTIONS("all", "type");
+
     if (!(dom = virshCommandOptDomain(ctl, cmd, NULL)))
         return false;