mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
Zsh completions: return 1 if no completions
This commit is contained in:
@@ -1398,6 +1398,7 @@ function Parser:get_zsh_complete()
|
|||||||
end
|
end
|
||||||
self:_zsh_arguments(buf, self._name, 2)
|
self:_zsh_arguments(buf, self._name, 2)
|
||||||
self:_zsh_complete_help(buf, cmds_buf, self._name, 2)
|
self:_zsh_complete_help(buf, cmds_buf, self._name, 2)
|
||||||
|
table.insert(buf, "\n return 1")
|
||||||
table.insert(buf, "}")
|
table.insert(buf, "}")
|
||||||
|
|
||||||
local result = table.concat(buf, "\n")
|
local result = table.concat(buf, "\n")
|
||||||
|
Reference in New Issue
Block a user