diff --git a/cli/assets/completions/usage.bash b/cli/assets/completions/usage.bash index ea9e54b..75c84e9 100644 --- a/cli/assets/completions/usage.bash +++ b/cli/assets/completions/usage.bash @@ -3489,7 +3489,7 @@ _usage() { local cur prev words cword was_split comp_args _comp_initialize -n : -- "$@" || return # shellcheck disable=SC2207 - _comp_compgen -- -W "$(usage complete-word --shell bash -s "${spec_variable}" --cword="$cword" -- "${words[@]}")" + _comp_compgen -- -W "$(usage complete-word --shell bash -s "${_usage_spec_usage}" --cword="$cword" -- "${words[@]}")" _comp_ltrim_colon_completions "$cur" # shellcheck disable=SC2181 if [[ $? -ne 0 ]]; then diff --git a/lib/src/complete/bash.rs b/lib/src/complete/bash.rs index 1e887fd..4e4523e 100644 --- a/lib/src/complete/bash.rs +++ b/lib/src/complete/bash.rs @@ -46,7 +46,7 @@ __USAGE_EOF__"#, local cur prev words cword was_split comp_args _comp_initialize -n : -- "$@" || return # shellcheck disable=SC2207 - _comp_compgen -- -W "$(usage complete-word --shell bash -s "${{spec_variable}}" --cword="$cword" -- "${{words[@]}}")" + _comp_compgen -- -W "$(usage complete-word --shell bash -s "${{{spec_variable}}}" --cword="$cword" -- "${{words[@]}}")" _comp_ltrim_colon_completions "$cur" # shellcheck disable=SC2181 if [[ $? -ne 0 ]]; then