提交 ee6113aa 编写于 作者: L Lin Ma 提交者: Michal Privoznik

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: NLin Ma <lma@suse.com>
上级 d86531da
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册