diff options
author | Oliver Kiddle <opk@zsh.org> | 2021-07-11 00:32:34 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2021-07-11 00:32:34 +0200 |
commit | 6e10067ffd3d2ede3e0a59c36e03d00cee5d9ad1 (patch) | |
tree | 74ca0ec49a03e60378dc055bc17bbd2e63f0c07c /Completion/Debian | |
parent | e9203d04aa8cd0e77ddafd8153368bf10a909d44 (diff) | |
download | zsh-6e10067ffd3d2ede3e0a59c36e03d00cee5d9ad1.tar.gz zsh-6e10067ffd3d2ede3e0a59c36e03d00cee5d9ad1.tar.xz zsh-6e10067ffd3d2ede3e0a59c36e03d00cee5d9ad1.zip |
49158: remove superfluous function definitions
Diffstat (limited to 'Completion/Debian')
-rw-r--r-- | Completion/Debian/Command/_dscverify | 38 |
1 files changed, 17 insertions, 21 deletions
diff --git a/Completion/Debian/Command/_dscverify b/Completion/Debian/Command/_dscverify index 4d383c6c4..84b00e4e7 100644 --- a/Completion/Debian/Command/_dscverify +++ b/Completion/Debian/Command/_dscverify @@ -4,27 +4,23 @@ # This is dscverify, from the Debian devscripts package, version 2.20.2 # ... -_dscverify() { - local all_opts=( - '--help[show the help message and exit]' - '--version[show the version + copyright and exit]' - '--no-default-keyrings[do not check against the default keyrings]' - '*--keyring[add keyring to the list of keyrings used]:keyring:_files -g "*.(kbx|gpg)(-.)"' - '(--nosigcheck --no-sig-check -u)'{--nosigcheck,--no-sig-check,-u}'[do not verify the GPG signature]' - '--verbose[do not suppress GPG output]' - '*:dsc file:_files -g "*.(changes|dsc|buildinfo)(-.)"' - ) +local all_opts=( + '--help[show the help message and exit]' + '--version[show the version + copyright and exit]' + '--no-default-keyrings[do not check against the default keyrings]' + '*--keyring[add keyring to the list of keyrings used]:keyring:_files -g "*.(kbx|gpg)(-.)"' + '(--nosigcheck --no-sig-check -u)'{--nosigcheck,--no-sig-check,-u}"[don't verify the GPG signature]" + "--verbose[don't suppress GPG output]" + '*:dsc file:_files -g "*.(changes|dsc|buildinfo)(-.)"' +) - local first_only=( - '(--no-conf --noconf)'{--no-conf,--noconf}'[do not read the devscripts config file]' - ) +local first_only=( + '(--no-conf --noconf)'{--no-conf,--noconf}"[don't read the devscripts config file]" +) - if (( CURRENT == 2 )); then - all_opts+=($first_only) - fi +if (( CURRENT == 2 )); then + all_opts+=( $first_only ) +fi - _arguments \ - "$all_opts[@]" -} - -_dscverify "$@" +_arguments \ + "$all_opts[@]" |