We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7c96147 + 5a81b8a commit 980a906Copy full SHA for 980a906
shtab/__init__.py
@@ -606,7 +606,7 @@ def command_case(prefix, options):
606
607
return f"""\
608
{prefix}() {{
609
- local context state line curcontext="$curcontext" one_or_more='(-)*' remainder='(*)'
+ local context state line curcontext="$curcontext" one_or_more='(*)' remainder='(-)*'
610
611
if ((${{{prefix}_options[(I)${{(q)one_or_more}}*]}} + ${{{prefix}_options[(I)${{(q)remainder}}*]}} == 0)); then # noqa: E501
612
{prefix}_options+=(': :{prefix}_commands' '*::: :->{name}')
0 commit comments