From 0500f6c6f6ee744eb1288bfc1cf0b9ceebf90675 Mon Sep 17 00:00:00 2001 From: Erik Flodin Date: Tue, 29 Dec 2020 21:30:00 +0100 Subject: [PATCH] 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). --- completion/zsh/_yadm | 1 - 1 file changed, 1 deletion(-) diff --git a/completion/zsh/_yadm b/completion/zsh/_yadm index dba7aac..a10fa04 100644 --- a/completion/zsh/_yadm +++ b/completion/zsh/_yadm @@ -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' \