virsh: cmdDomdisplayReload: Require option name for --type

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>
This commit is contained in:
Peter Krempa 2024-03-13 17:55:53 +01:00
parent 3050cd73a4
commit 1a883c9a7c
2 changed files with 2 additions and 1 deletions

View 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 Reload the domain's graphical display. This reloads its TLS certificates
without restarting the domain. ``type`` can be any constant from the without restarting the domain. ``type`` can be any constant from the

View File

@ -13290,6 +13290,7 @@ static const vshCmdOptDef opts_domdisplay_reload[] = {
VIRSH_COMMON_OPT_DOMAIN_FULL(0), VIRSH_COMMON_OPT_DOMAIN_FULL(0),
{.name = "type", {.name = "type",
.type = VSH_OT_INT, .type = VSH_OT_INT,
.flags = VSH_OFLAG_REQ_OPT,
.help = N_("graphics display type") .help = N_("graphics display type")
}, },
{.name = NULL} {.name = NULL}