zsh: -d can't be used as a global option

It's only supported as a command option and the command will fail if
-d is used as a global option. Instead of completing it in the wrong
place, don't complete it at all as it can be considered an "internal"
switch (it's not mentioned in the manual).
pull/279/head
Erik Flodin 3 years ago
parent d005ce4df4
commit 0500f6c6f6
No known key found for this signature in database
GPG Key ID: 420A7C865EE3F85F

@ -122,7 +122,6 @@ _yadm() {
'--yadm-encrypt[override the standard encrypt path]: :_files -/' \
'--yadm-archive[override the standard archive path]: :_files -/' \
'--yadm-bootstrap[override the standard bootstrap path]: :_files' \
'-d[print debug traces]' \
'--help[display yadm help information]' \
'--version[show yadm version]' \
'(-): :->command' \

Loading…
Cancel
Save