Skip to content

Commit a81c261

Browse files
authored
Merge pull request #137 from guillaumeboehm/main
2 parents d3721cf + 2c4389d commit a81c261

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shtab/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ def recurse(parser, prefix, paths=None):
563563
def command_case(prefix, options):
564564
name = options["cmd"]
565565
commands = options["commands"]
566-
case_fmt_on_no_sub = """{name}) _arguments -C ${prefix}_{name_wordify}_options ;;"""
566+
case_fmt_on_no_sub = """{name}) _arguments -C -s ${prefix}_{name_wordify}_options ;;"""
567567
case_fmt_on_sub = """{name}) {prefix}_{name_wordify} ;;"""
568568

569569
cases = []
@@ -581,7 +581,7 @@ def command_case(prefix, options):
581581
if ((${{{prefix}_options[(I)${{(q)one_or_more}}*]}} + ${{{prefix}_options[(I)${{(q)remainder}}*]}} == 0)); then # noqa: E501
582582
{prefix}_options+=(': :{prefix}_commands' '*::: :->{name}')
583583
fi
584-
_arguments -C ${prefix}_options
584+
_arguments -C -s ${prefix}_options
585585
586586
case $state in
587587
{name})

0 commit comments

Comments
 (0)