mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 11:02:20 +00:00
Merge remote-tracking branch 'luarocks/refs/pull/11/head'
This commit is contained in:
@@ -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
|
||||||
|
@@ -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)
|
||||||
|
Reference in New Issue
Block a user