virsh: Annotate rest of _ARGV arguments as positional

In most cases it's the usual/recommended way to use those commands:

 $ virsh qemu-monitor-command VMNAME cmd args args args

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:45:04 +01:00
parent 4d4f4fd516
commit e9e3d6dff4
2 changed files with 9 additions and 0 deletions

View File

@ -5000,6 +5000,7 @@ static const vshCmdOptDef opts_schedinfo[] = {
VIRSH_COMMON_OPT_LIVE(N_("get/set value from running domain")),
{.name = "set",
.type = VSH_OT_ARGV,
.positional = true,
.flags = VSH_OFLAG_NONE,
.help = N_("parameter=value")
},
@ -8188,6 +8189,7 @@ static const vshCmdOptDef opts_desc[] = {
},
{.name = "new-desc",
.type = VSH_OT_ARGV,
.positional = true,
.help = N_("message")
},
{.name = NULL}
@ -8493,6 +8495,7 @@ static const vshCmdOptDef opts_send_key[] = {
{.name = "keycode",
.type = VSH_OT_ARGV,
.required = true,
.positional = true,
.completer = virshKeycodeNameCompleter,
.help = N_("the key code")
},
@ -9600,6 +9603,7 @@ static const vshCmdOptDef opts_qemu_monitor_command[] = {
},
{.name = "cmd",
.type = VSH_OT_ARGV,
.positional = true,
.required = true,
.help = N_("command")
},
@ -9996,6 +10000,7 @@ static const vshCmdOptDef opts_qemu_agent_command[] = {
},
{.name = "cmd",
.type = VSH_OT_ARGV,
.positional = true,
.required = true,
.help = N_("command")
},
@ -10092,6 +10097,7 @@ static const vshCmdOptDef opts_lxc_enter_namespace[] = {
},
{.name = "cmd",
.type = VSH_OT_ARGV,
.positional = true,
.required = true,
.help = N_("command to run")
},
@ -12795,6 +12801,7 @@ static const vshCmdOptDef opts_domfsfreeze[] = {
VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE),
{.name = "mountpoint",
.type = VSH_OT_ARGV,
.positional = true,
.completer = virshDomainFSMountpointsCompleter,
.help = N_("mountpoint path to be frozen")
},
@ -12835,6 +12842,7 @@ static const vshCmdOptDef opts_domfsthaw[] = {
VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE),
{.name = "mountpoint",
.type = VSH_OT_ARGV,
.positional = true,
.completer = virshDomainFSMountpointsCompleter,
.help = N_("mountpoint path to be thawed")
},

View File

@ -324,6 +324,7 @@ static const vshCmdOptDef opts_network_desc[] = {
},
{.name = "new-desc",
.type = VSH_OT_ARGV,
.positional = true,
.help = N_("message")
},
{.name = NULL}