Skip to content

Commit d93d6af

Browse files
authored
Merge pull request #35 from iterative/devel
next release v1.3.6
2 parents a519f26 + 4c5434e commit d93d6af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shtab/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def format_optional(opt):
414414

415415
def format_positional(opt):
416416
return '"{nargs}:{help}:{pattern}"'.format(
417-
nargs={"+": "*", "*": "*"}.get(opt.nargs, ""),
417+
nargs={"+": "(*)", "*": "(*):"}.get(opt.nargs, ""),
418418
help=escape_zsh((opt.help or opt.dest).strip().split("\n")[0]),
419419
pattern=complete2pattern(opt.complete, "zsh", choice_type2fn)
420420
if hasattr(opt, "complete")

0 commit comments

Comments
 (0)