From 8eefc7afc8794ace47b0d1ce46ccf6bd76d7369a Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Fri, 17 Sep 2021 09:50:09 +0200 Subject: [PATCH] virsh: Provide local path completer for screenshot --file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The screenshot command takes optional --file argument which can point to an existing local path (in which case the file is overwritten). Set the argument's completer so that self-test doesn't report it as missing. Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko --- tools/virsh-domain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 70aa4167c2..f876f30cc5 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -5520,6 +5520,7 @@ static const vshCmdOptDef opts_screenshot[] = { VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE), {.name = "file", .type = VSH_OT_STRING, + .completer = virshCompletePathLocalExisting, .help = N_("where to store the screenshot") }, {.name = "screen",