mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-27 18:42: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
|
||||
self:_zsh_arguments(buf, self._name, 2)
|
||||
self:_zsh_complete_help(buf, cmds_buf, self._name, 2)
|
||||
table.insert(buf, "\n return 1")
|
||||
table.insert(buf, "}")
|
||||
|
||||
local result = table.concat(buf, "\n")
|
||||
|
Reference in New Issue
Block a user