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:
Lin Ma 2018-05-08 22:20:37 +08:00 committed by Michal Privoznik
parent d86531daf2
commit ee6113aaea

View File

@ -2685,7 +2685,7 @@ vshReadlineOptionsGenerator(const char *text,
}
while (opt) {
if (STREQ(opt->def->name, name)) {
if (STREQ(opt->def->name, name) && opt->def->type != VSH_OT_ARGV) {
exists = true;
break;
}