Merge pull request #1046 from zsh-users/do-not-use-global-variable

Do not use global variable, use local variable instead
This commit is contained in:
Shohei YOSHIDA 2023-10-03 18:51:39 +09:00 committed by GitHub
commit 5e6f4da967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -39,7 +39,7 @@
#
# ------------------------------------------------------------------------------
args=(
local -a args=(
'(-h --help)'{-h+,--help}'[show this help message and exit]'
'(-)'--version'[display version information and exit]'
'(-)1:directory: _path_files -/'
@ -47,3 +47,11 @@ args=(
'*::arguments: _precommand'
)
_arguments -S $args
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et