]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Allow data or argument options to be completed as well
authorNishith Shah <nishithshah.2211@gmail.com>
Mon, 5 Sep 2016 09:45:10 +0000 (09:45 +0000)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 5 Sep 2016 12:16:45 +0000 (14:16 +0200)
Signed-off-by: Nishith Shah <nishithshah.2211@gmail.com>
tools/vsh.c

index b101645ab925c0b5aa8edd1cdcc4b92b09f77dbb..45f55d94925cb634b89961eafcc8ada1de05af20 100644 (file)
@@ -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))