mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 13:47:13 +03:00
vshReadlineOptionsGenerator: Add already provided VSH_OT_ARGV options to list
It's helpful for users while they type certain kind of VSH_OT_ARGV options. e.g. $ virsh domstats --domain sles12sp3 --d<TAB> Signed-off-by: Lin Ma <lma@suse.com>
This commit is contained in:
parent
d86531daf2
commit
ee6113aaea
@ -2685,7 +2685,7 @@ vshReadlineOptionsGenerator(const char *text,
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (opt) {
|
while (opt) {
|
||||||
if (STREQ(opt->def->name, name)) {
|
if (STREQ(opt->def->name, name) && opt->def->type != VSH_OT_ARGV) {
|
||||||
exists = true;
|
exists = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user