]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: cmdDomdisplayReload: Require option name for --type
authorPeter Krempa <pkrempa@redhat.com>
Wed, 13 Mar 2024 16:55:53 +0000 (17:55 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 25 Mar 2024 15:18:32 +0000 (16:18 +0100)
As this command was introduced in this release add the flag requiring to
pass optionname.

This is needed to actually disallow positional parsing of the value
despite documenting that the flag name is required.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/manpages/virsh.rst
tools/virsh-domain.c

index 115b802c45daf1483e06aba77a90a12f6ec484a0..28d430bf92f67e1f21b565605381092aae220b8f 100644 (file)
@@ -1790,7 +1790,7 @@ domdisplay-reload
 
 ::
 
-    domdisplay-reload <domain> [[--type] <type>]
+    domdisplay-reload <domain> [--type <type>]
 
 Reload the domain's graphical display. This reloads its TLS certificates
 without restarting the domain. ``type`` can be any constant from the
index 35809a866b254f9da7544a03c09d7d8b1bef40d8..cd378286605463999d4e904a0a15746f580ae72b 100644 (file)
@@ -13290,6 +13290,7 @@ static const vshCmdOptDef opts_domdisplay_reload[] = {
     VIRSH_COMMON_OPT_DOMAIN_FULL(0),
     {.name = "type",
      .type = VSH_OT_INT,
+     .flags = VSH_OFLAG_REQ_OPT,
      .help = N_("graphics display type")
     },
     {.name = NULL}