]> git.proxmox.com Git - pve-common.git/commit - src/PVE/CLIHandler.pm
zsh-completion: Add missing flag to compadd
authorChristian Ebner <c.ebner@proxmox.com>
Thu, 20 Feb 2020 15:33:07 +0000 (16:33 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 21 Feb 2020 08:45:14 +0000 (09:45 +0100)
commit630fe0a73534f8f9aee00f280438d24519ac09a0
treec8f357d092f4e777b3fa7621b90a9430f1e1e11e
parenta70e9925ae1545f151ff7c42fa3b4b5fcd3f4de8
zsh-completion: Add missing flag to compadd

This fixes an issue with zsh completion where certain words were not added to the
list of matches, but incorrectly interpreted as flags or options.

By passing the "--" flag, compadd is notified that all following arguments should
be considered for completion and not interpreted as flags or options for compadd.

Details can be found in the compadd documentation:
http://zsh.sourceforge.net/Doc/Release/Completion-Widgets.html#Completion-Builtin-Commands

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
src/PVE/CLIHandler.pm