Fix rails completion

- fix wrong variable usage
This commit is contained in:
Shohei YOSHIDA 2026-03-08 22:56:44 +09:00
parent ee1514fc41
commit c1b7ac5bf0
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ _rails() {
'(- *)'{-v,--version}'[Show Rails version and quit]' '(- *)'{-v,--version}'[Show Rails version and quit]'
) )
runtime_options=( rails_options=(
'(-f --force)'{-f,--force}'[Overwrite files that already exist]' '(-f --force)'{-f,--force}'[Overwrite files that already exist]'
'(-p --pretend)'{-p,--pretend}'[Run but do not make any changes]' '(-p --pretend)'{-p,--pretend}'[Run but do not make any changes]'
'(-q --quiet)'{-q,--quiet}'[Suppress status output]' '(-q --quiet)'{-q,--quiet}'[Suppress status output]'
@ -59,7 +59,7 @@ _rails() {
local ret=1 local ret=1
_arguments -C \ _arguments -C \
$rails_options \ $runtime_options \
'1: :_rails_subcommands' \ '1: :_rails_subcommands' \
'*:: :->command' && ret=0 '*:: :->command' && ret=0