[libvirt] [PATCH 06/12] virsh: event: options --all and --event are mutually exclusive

Ján Tomko jtomko at redhat.com
Sat Sep 12 10:39:51 UTC 2020


On a Friday in 2020, Lin Ma wrote:
>Signed-off-by: Lin Ma <lma at suse.de>
>---
> tools/virsh-domain.c | 2 ++
> 1 file changed, 2 insertions(+)
>
>diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
>index 86152a53b1..657a0532db 100644
>--- a/tools/virsh-domain.c
>+++ b/tools/virsh-domain.c
>@@ -13696,6 +13696,8 @@ cmdEvent(vshControl *ctl, const vshCmd *cmd)
>     int count = 0;
>     virshControlPtr priv = ctl->privData;
>
>+    VSH_EXCLUSIVE_OPTIONS("all", "event");

--list also excludes any of these two.

Jano

>+
>     if (vshCommandOptBool(cmd, "list")) {
>         for (event = 0; event < VIR_DOMAIN_EVENT_ID_LAST; event++)
>             vshPrint(ctl, "%s\n", virshDomainEventCallbacks[event].name);
>-- 
>2.26.0
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200912/580f6b3c/attachment-0001.sig>


More information about the libvir-list mailing list