mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-27 18:42:20 +00:00
Merge remote-tracking branch 'luarocks/refs/pull/11/head'
This commit is contained in:
@@ -31,7 +31,7 @@ _comptest() {
|
||||
return 0
|
||||
;;
|
||||
-f|--files)
|
||||
COMPREPLY=($(compgen -f "$cur"))
|
||||
COMPREPLY=($(compgen -f -- "$cur"))
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
@@ -1218,7 +1218,7 @@ function Parser:_bash_option_args(buf, indent)
|
||||
if option._choices then
|
||||
compreply = 'COMPREPLY=($(compgen -W "' .. table.concat(option._choices, " ") .. '" -- "$cur"))'
|
||||
else
|
||||
compreply = 'COMPREPLY=($(compgen -f "$cur"))'
|
||||
compreply = 'COMPREPLY=($(compgen -f -- "$cur"))'
|
||||
end
|
||||
table.insert(opts, (" "):rep(indent + 4) .. table.concat(option._aliases, "|") .. ")")
|
||||
table.insert(opts, (" "):rep(indent + 8) .. compreply)
|
||||
|
Reference in New Issue
Block a user