mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virsh: Make '(snapshot|checkpoint)-create' 'xmlfile' argument positional
The argument is optional thus couldn't be marked as positional until now, despite being parsed positionally. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
29f3ac4223
commit
3bbc97620a
@ -81,6 +81,7 @@ static const vshCmdOptDef opts_checkpoint_create[] = {
|
||||
VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE),
|
||||
{.name = "xmlfile",
|
||||
.type = VSH_OT_STRING,
|
||||
.positional = true,
|
||||
.completer = virshCompletePathLocalExisting,
|
||||
.help = N_("domain checkpoint XML")
|
||||
},
|
||||
|
@ -109,6 +109,7 @@ static const vshCmdOptDef opts_snapshot_create[] = {
|
||||
VIRSH_COMMON_OPT_DOMAIN_FULL(0),
|
||||
{.name = "xmlfile",
|
||||
.type = VSH_OT_STRING,
|
||||
.positional = true,
|
||||
.completer = virshCompletePathLocalExisting,
|
||||
.help = N_("domain snapshot XML")
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user