Merge pull request #611 from eramoto/completions-global-option

completions: Fix completions with a global option and indentation
This commit is contained in:
Valentin Rothberg 2019-03-06 11:04:11 +01:00 committed by GitHub
commit 0490018903
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,9 @@ _cli_bash_autocomplete() {
local counter=1
counter=1
while [ $counter -lt $cword ]; do
case "!${words[$counter]}" in
case "${words[$counter]}" in
-*)
;;
*)
command=$(echo "${words[$counter]}" | sed 's/-/_/g')
cpos=$counter