Merge remote-tracking branch 'luarocks/refs/pull/11/head'

This commit is contained in:
daurnimator
2019-07-30 10:51:16 +10:00
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ _comptest() {
return 0 return 0
;; ;;
-f|--files) -f|--files)
COMPREPLY=($(compgen -f "$cur")) COMPREPLY=($(compgen -f -- "$cur"))
return 0 return 0
;; ;;
esac esac

View File

@@ -1218,7 +1218,7 @@ function Parser:_bash_option_args(buf, indent)
if option._choices then if option._choices then
compreply = 'COMPREPLY=($(compgen -W "' .. table.concat(option._choices, " ") .. '" -- "$cur"))' compreply = 'COMPREPLY=($(compgen -W "' .. table.concat(option._choices, " ") .. '" -- "$cur"))'
else else
compreply = 'COMPREPLY=($(compgen -f "$cur"))' compreply = 'COMPREPLY=($(compgen -f -- "$cur"))'
end end
table.insert(opts, (" "):rep(indent + 4) .. table.concat(option._aliases, "|") .. ")") table.insert(opts, (" "):rep(indent + 4) .. table.concat(option._aliases, "|") .. ")")
table.insert(opts, (" "):rep(indent + 8) .. compreply) table.insert(opts, (" "):rep(indent + 8) .. compreply)