virsh: Fix '--name' and '--parent' used together in '(snapshot|checkpoint)-list'...
commit6193c4656e67f8d5f7a7de01aff4f24b2fe7e782
authorPeter Krempa <pkrempa@redhat.com>
Thu, 21 Mar 2024 12:15:40 +0000 (21 13:15 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Apr 2024 12:24:30 +0000 (2 14:24 +0200)
tree2b734dba8995506530fa61175292b1b27823105a
parenta068dec641c0e93f795fe89df8be8b99b4576a78
virsh: Fix '--name' and '--parent' used together in '(snapshot|checkpoint)-list' command

Until now when '--name' was used the parent was not printed and the
option was ignored. One option would be to declare the options mutually
exclusive, but for testing it may come handy to print both the snapshot
name and parent. Adjust the code to print them tab-separated and adjust
the docs.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/manpages/virsh.rst
tools/virsh-checkpoint.c
tools/virsh-snapshot.c