zsh: Add missing -n shorthand for --dry-run

Both already an option in udevadm and systemd-tmpfiles.
This commit is contained in:
Jelle van der Waa
2026-08-31 15:52:42 +02:00
parent 55ed2ee63e
commit 12217e71a2
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -5,8 +5,8 @@ _arguments \
'(- *)'{-h,--help}'[Show help]' \
'--user[Execute user configuration]' \
'(- *)--version[Show package version]' \
'(--tldr --dry-run)--cat-config[Show configuration files]' \
'(--cat-config --dry-run)--tldr[Show non-comment parts of configuration]' \
'(--tldr -n --dry-run)--cat-config[Show configuration files]' \
'(--cat-config -n --dry-run)--tldr[Show non-comment parts of configuration]' \
'--create[Create, set ownership/permissions based on the config files.]' \
'--clean[Clean up all files and directories with an age parameter configured.]' \
'--remove[All files and directories marked with r, R in the configuration files are removed.]' \
@@ -20,6 +20,6 @@ _arguments \
'--image=[Operate on disk image as filesystem root]:image' \
'--image-policy=[Specify disk image dissection policy]:policy' \
'--replace=[Treat arguments as replacement for PATH]:PATH' \
'(--cat-config --tldr)--dry-run[Just print what would be done]' \
'(--cat-config --tldr)'{-n,--dry-run}'[Just print what would be done]' \
'--no-pager[Do not pipe output into a pager]' \
'*::files:_files -g "*.conf"'
+1 -1
View File
@@ -27,7 +27,7 @@ _udevadm_trigger(){
'(-)'{-h,--help}'[Show help]' \
'(-)'{-V,--version}'[Show package version]' \
'--verbose[Print the list of devices which will be triggered.]' \
'--dry-run[Do not actually trigger the event.]' \
'(-n --dry-run)'{-n,--dry-run}'[Do not actually trigger the event.]' \
'--quiet[Suppress error logging in triggering events.]' \
'--type=[Trigger a specific type of devices.]:types:(all devices subsystems failed)' \
'--action=[Type of event to be triggered.]:actions:(add change remove move online offline bind unbind)' \