From d19b12a681f1d2efb22055b07f50f1caebf5cb56 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 14 Mar 2024 18:05:07 +0100 Subject: [PATCH] virsh-backup: Fix argument annotations of 'backup-begin' command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mark the 'backupxml' as positional optional and the 'checkpointxml' as 'unwanted_positional' to preserve the positional parsing quirk. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- tools/virsh-backup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/virsh-backup.c b/tools/virsh-backup.c index 7a7834d7ff..52325b5ca0 100644 --- a/tools/virsh-backup.c +++ b/tools/virsh-backup.c @@ -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"), },