From: Lin Ma Date: Fri, 11 Sep 2020 07:06:15 +0000 (+0800) Subject: virsh: domdisplay: options --all and --type are mutually exclusive X-Git-Tag: v6.8.0-rc1~180 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7b53c651a1caf5ac05a67adbe251ac51b404b2a;p=thirdparty%2Flibvirt.git virsh: domdisplay: options --all and --type are mutually exclusive Signed-off-by: Lin Ma Reviewed-by: Ján Tomko Signed-off-by: Ján Tomko --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 08496cc5bf..722d38db8e 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -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;