Comment Comment by vcdimension In zsh you can use the _gnu_generic function for simple completion of commands with a --help flag. Just put a line like this somewhere in your startup file: compdef _gnu_generic <CMD> parent vcdimension 1 year ago