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).
This commit is contained in:
Erik Flodin 2020-12-29 21:30:00 +01:00
parent d005ce4df4
commit 0500f6c6f6
No known key found for this signature in database
GPG Key ID: 420A7C865EE3F85F
1 changed files with 0 additions and 1 deletions

View File

@ -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' \