mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virsh-backup: Fix argument annotations of 'backup-begin' command
Mark the 'backupxml' as positional optional and the 'checkpointxml' as 'unwanted_positional' to preserve the positional parsing quirk. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
3bbc97620a
commit
d19b12a681
@ -34,11 +34,13 @@ static const vshCmdOptDef opts_backup_begin[] = {
|
||||
VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE),
|
||||
{.name = "backupxml",
|
||||
.type = VSH_OT_STRING,
|
||||
.positional = true,
|
||||
.completer = virshCompletePathLocalExisting,
|
||||
.help = N_("domain backup XML"),
|
||||
},
|
||||
{.name = "checkpointxml",
|
||||
.type = VSH_OT_STRING,
|
||||
.unwanted_positional = true,
|
||||
.completer = virshCompletePathLocalExisting,
|
||||
.help = N_("domain checkpoint XML"),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user