mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
virsh: Allow data or argument options to be completed as well
Signed-off-by: Nishith Shah <nishithshah.2211@gmail.com>
This commit is contained in:
parent
dcfdf341ea
commit
2550579669
@ -2607,10 +2607,6 @@ vshReadlineOptionsGenerator(const char *text, int state, const vshCmdDef *cmd_pa
|
||||
|
||||
list_index++;
|
||||
|
||||
if (opt->type == VSH_OT_DATA || opt->type == VSH_OT_ARGV)
|
||||
/* ignore non --option */
|
||||
continue;
|
||||
|
||||
if (len > 2) {
|
||||
/* provide auto-complete only when the text starts with -- */
|
||||
if (STRNEQLEN(text, "--", 2))
|
||||
|
Loading…
Reference in New Issue
Block a user