]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: iface-list: options --all and --inactive are mutually exclusive
authorLin Ma <morecache@gmail.com>
Fri, 11 Sep 2020 07:06:16 +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-interface.c

index a6b52726c95cfa313943386922291ccd0c133726..2bca2483ddd79da71e2680f62a62f2dbef5afea2 100644 (file)
@@ -351,6 +351,8 @@ cmdInterfaceList(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED)
     bool ret = false;
     vshTablePtr table = NULL;
 
+    VSH_EXCLUSIVE_OPTIONS_VAR(all, inactive);
+
     if (inactive)
         flags = VIR_CONNECT_LIST_INTERFACES_INACTIVE;
     if (all)