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 2020-09-11 15:06:15 +08:00 committed by Ján Tomko
parent dfdacbeb39
commit b7b53c651a

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;