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