diff options
Diffstat (limited to 'Godeps/_workspace/src/github.com/codegangsta/cli/autocomplete')
-rw-r--r-- | Godeps/_workspace/src/github.com/codegangsta/cli/autocomplete/bash_autocomplete | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Godeps/_workspace/src/github.com/codegangsta/cli/autocomplete/bash_autocomplete b/Godeps/_workspace/src/github.com/codegangsta/cli/autocomplete/bash_autocomplete index d9231f4cf..21a232f1f 100644 --- a/Godeps/_workspace/src/github.com/codegangsta/cli/autocomplete/bash_autocomplete +++ b/Godeps/_workspace/src/github.com/codegangsta/cli/autocomplete/bash_autocomplete @@ -3,13 +3,12 @@ : ${PROG:=$(basename ${BASH_SOURCE})} _cli_bash_autocomplete() { - local cur prev opts base + local cur opts base COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" - prev="${COMP_WORDS[COMP_CWORD-1]}" opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} --generate-bash-completion ) COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 } - complete -F _cli_bash_autocomplete $PROG
\ No newline at end of file + complete -F _cli_bash_autocomplete $PROG |