virsh: Annotate '--diskspec' _ARGV options as unwanted positional

Our documentation in most places explicitly mentions --diskspec and it
was never meant to be positional, although we can't change the parser
any more. Annotate them as 'unwanted_positional'.

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 22:44:44 +01:00
parent d226a2cd70
commit 4d4f4fd516
2 changed files with 2 additions and 0 deletions

View File

@ -206,6 +206,7 @@ static const vshCmdOptDef opts_checkpoint_create_as[] = {
}, },
{.name = "diskspec", {.name = "diskspec",
.type = VSH_OT_ARGV, .type = VSH_OT_ARGV,
.unwanted_positional = true,
.help = N_("disk attributes: disk[,checkpoint=type][,bitmap=name]") .help = N_("disk attributes: disk[,checkpoint=type][,bitmap=name]")
}, },
{.name = NULL} {.name = NULL}

View File

@ -361,6 +361,7 @@ static const vshCmdOptDef opts_snapshot_create_as[] = {
}, },
{.name = "diskspec", {.name = "diskspec",
.type = VSH_OT_ARGV, .type = VSH_OT_ARGV,
.unwanted_positional = true,
.help = N_("disk attributes: disk[,snapshot=type][,driver=type][,stype=type][,file=name]") .help = N_("disk attributes: disk[,snapshot=type][,driver=type][,stype=type][,file=name]")
}, },
{.name = NULL} {.name = NULL}