fix fwupdmgr completion

- fix quoting
This commit is contained in:
Shohei YOSHIDA 2026-03-08 23:03:15 +09:00
parent 002a11fdb7
commit 586a4eb4a8
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 22 additions and 22 deletions

View File

@ -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)