virsh: domdisplay: options --all and --type are mutually exclusive

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>
This commit is contained in:
Lin Ma authored and Ján Tomko committed 2020-09-12 12:49:31 +02:00
1 parent dfdacbeb39
commit b7b53c651a
1 file changed
+2
+2
View 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;