Skip to content

Commit

Permalink
zsh: -d can't be used as a global option
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
erijo committed Dec 29, 2020
1 parent d005ce4 commit 0500f6c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion completion/zsh/_yadm
Original file line number Diff line number Diff line change
Expand Up @@ -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' \
Expand Down

0 comments on commit 0500f6c

Please sign in to comment.