[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH v2 2/4] virsh: event: options --list, --all and --event are mutually exclusive



From: Lin Ma <lma suse de>

Signed-off-by: Lin Ma <lma suse de>
---
 tools/virsh-domain.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index f0ca6f7b83..32edfc0398 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -13710,6 +13710,10 @@ cmdEvent(vshControl *ctl, const vshCmd *cmd)
     int count = 0;
     virshControlPtr priv = ctl->privData;
 
+    VSH_EXCLUSIVE_OPTIONS("all", "event");
+    VSH_EXCLUSIVE_OPTIONS("list", "all");
+    VSH_EXCLUSIVE_OPTIONS("list", "event");
+
     if (vshCommandOptBool(cmd, "list")) {
         for (event = 0; event < VIR_DOMAIN_EVENT_ID_LAST; event++)
             vshPrint(ctl, "%s\n", virshDomainEventCallbacks[event].name);
-- 
2.26.0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]