]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: cmdEcho: Make '--xml' and '--shell' mutually exclusive
authorPeter Krempa <pkrempa@redhat.com>
Wed, 11 Aug 2021 08:36:04 +0000 (10:36 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 18 Aug 2021 09:07:25 +0000 (11:07 +0200)
commit86de16b3170cb7131222a64fe955861ed2e3a3b4
tree077b54fe47a29475cc854cc566d397b09aae3408
parentc67fc3ea8250515f697cbbb72ca1146e90628682
virsh: cmdEcho: Make '--xml' and '--shell' mutually exclusive

Initialize the flags earlier and use VSH_EXCLUSIVE_OPTIONS_VAR to
declare the conflicting options as exclusive.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/vsh.c