From: Nishith Shah Date: Mon, 5 Sep 2016 09:45:10 +0000 (+0000) Subject: virsh: Allow data or argument options to be completed as well X-Git-Tag: v2.3.0-rc1~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2550579669b15bd01ee94003acd513a58360c227;p=thirdparty%2Flibvirt.git virsh: Allow data or argument options to be completed as well Signed-off-by: Nishith Shah --- diff --git a/tools/vsh.c b/tools/vsh.c index b101645ab9..45f55d9492 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -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))