Zsh completion is a complex complex animal, and I find it very difficult to read man pages, especially this (simple) all Examples of various optspec forms etc. I have not managed to find myself online, but so far it will be most appreciated.
For example, I am struggling with this time, and the zshcompsys
man page does not offer any explanation I have
#compdef mtt2 _arguments -s: \ '-h' '--help' \ '-V' '--version' \ ': foobors: (foo bar bottom)'
Now, when I type mtt2 & lt; TAB & gt;
Only me foo
, bar
and baz
as a form of completion, why not -h
, < Code> - help , etc., as well?
Comments
Post a Comment