From 3bbc97620a712148ddea41b3fffe6eb860c73ca6 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 14 Mar 2024 17:25:02 +0100 Subject: [PATCH] virsh: Make '(snapshot|checkpoint)-create' 'xmlfile' argument positional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The argument is optional thus couldn't be marked as positional until now, despite being parsed positionally. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- tools/virsh-checkpoint.c | 1 + tools/virsh-snapshot.c | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/virsh-checkpoint.c b/tools/virsh-checkpoint.c index 9aeb8a5e7e..7151e2b182 100644 --- a/tools/virsh-checkpoint.c +++ b/tools/virsh-checkpoint.c @@ -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") }, diff --git a/tools/virsh-snapshot.c b/tools/virsh-snapshot.c index 6c8194d67f..b47733d05b 100644 --- a/tools/virsh-snapshot.c +++ b/tools/virsh-snapshot.c @@ -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") },