]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: Make '(snapshot|checkpoint)-create' 'xmlfile' argument positional
authorPeter Krempa <pkrempa@redhat.com>
Thu, 14 Mar 2024 16:25:02 +0000 (17:25 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Apr 2024 12:24:29 +0000 (14:24 +0200)
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>
tools/virsh-checkpoint.c
tools/virsh-snapshot.c

index 9aeb8a5e7ed49503e7f9812e4a5bef211d6e06ff..7151e2b182cfef9d8ad642c0fd01404e6e78e497 100644 (file)
@@ -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")
     },
index 6c8194d67f3155bceaf1b210ec00666f4a278985..b47733d05bf985ffd2be6bd02901d3f932867c9b 100644 (file)
@@ -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")
     },