From 586a4eb4a8b33b414b6d4f0fedb992455cf5aa77 Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Sun, 8 Mar 2026 23:03:15 +0900 Subject: [PATCH] fix fwupdmgr completion - fix quoting --- src/_fwupdmgr | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/_fwupdmgr b/src/_fwupdmgr index d7d4d95..45a6e9e 100644 --- a/src/_fwupdmgr +++ b/src/_fwupdmgr @@ -21,35 +21,35 @@ _fwupdmgr() { _arguments -C \ '(- : *)'{-h,--help}'[display help information]' \ - '(- : *)--version'[display version information]' \ - '{-v,--verbose}'[show extra debugging information]' \ - --offline'[schedule installation for next reboot when possible]' \ - --allow-reinstall'[allow re-installing existing firmware versions]' \ - --allow-older'[allow downgrading firmware versions]' \ - --allow-branch-switch'[allow switching firmware branch]' \ - --force'[override warnings and force the action]' \ + '(- : *)--version[display version information]' \ + '(-v --verbose)'{-v,--verbose}'[show extra debugging information]' \ + '--offline[schedule installation for next reboot when possible]' \ + '--allow-reinstall[allow re-installing existing firmware versions]' \ + '--allow-older[allow downgrading firmware versions]' \ + '--allow-branch-switch[allow switching firmware branch]' \ + '--force[override warnings and force the action]' \ '(-y --assume-yes)'{-y,--assume-yes}'[answer yes to all questions]' \ - --sign'[sign the uploaded data with the client certificate]' \ - --no-unreported-check'[do not check for unreported history]' \ - --no-metadata-check'[do not check for old metadata]' \ - --no-reboot-check'[do not check for reboot after update]' \ - --no-safety-check'[do not perform device safety checks]' \ - --no-device-prompt'[do not prompt for devices]' \ - --no-history'[do not write to the history database]' \ - --show-all'[show all results]' \ - --disable-ssl-strict'[ignore SSL strict checks when downloading files]' \ - --ipfs'[only use IPFS when downloading files]' \ - --filter'[filter with a set of device flags using a ~ prefix to exclude]:filter' \ - --json'[output in JSON format]' \ - --no-authenticate'[do not prompt for authentication]' \ + '--sign[sign the uploaded data with the client certificate]' \ + '--no-unreported-check[do not check for unreported history]' \ + '--no-metadata-check[do not check for old metadata]' \ + '--no-reboot-check[do not check for reboot after update]' \ + '--no-safety-check[do not perform device safety checks]' \ + '--no-device-prompt[do not prompt for devices]' \ + '--no-history[do not write to the history database]' \ + '--show-all[show all results]' \ + '--disable-ssl-strict[ignore SSL strict checks when downloading files]' \ + '--ipfs[only use IPFS when downloading files]' \ + '--filter[filter with a set of device flags using a ~ prefix to exclude]:filter' \ + '--json[output in JSON format]' \ + '--no-authenticate[do not prompt for authentication]' \ '(-): :->command' \ '(-)*:: :->arguments' \ - && ret=0 + && ret=0 case $state in (command) _fwupdmgr_commands - ;; + ;; (arguments) case $words[1] in (activate|downgrade|emulation-tag|emulation-untag|get-releases|get-updates|reinstall|update|verify|verify-update)