virsh: domblkinfo: options --all and --device 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:14 +08:00 committed by Ján Tomko
parent 10841b6cb6
commit dfdacbeb39

View File

@ -469,6 +469,8 @@ cmdDomblkinfo(vshControl *ctl, const vshCmd *cmd)
char *phy = NULL;
vshTablePtr table = NULL;
VSH_EXCLUSIVE_OPTIONS("all", "device");
if (!(dom = virshCommandOptDomain(ctl, cmd, NULL)))
return false;