mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
d226a2cd70
commit
4d4f4fd516
@ -206,6 +206,7 @@ static const vshCmdOptDef opts_checkpoint_create_as[] = {
|
||||
},
|
||||
{.name = "diskspec",
|
||||
.type = VSH_OT_ARGV,
|
||||
.unwanted_positional = true,
|
||||
.help = N_("disk attributes: disk[,checkpoint=type][,bitmap=name]")
|
||||
},
|
||||
{.name = NULL}
|
||||
|
@ -361,6 +361,7 @@ static const vshCmdOptDef opts_snapshot_create_as[] = {
|
||||
},
|
||||
{.name = "diskspec",
|
||||
.type = VSH_OT_ARGV,
|
||||
.unwanted_positional = true,
|
||||
.help = N_("disk attributes: disk[,snapshot=type][,driver=type][,stype=type][,file=name]")
|
||||
},
|
||||
{.name = NULL}
|
||||
|
Loading…
Reference in New Issue
Block a user