Skip to content

Commit 4c5434e

Browse files
committed
zsh: fix positional multi-arg error
- fixes #29
1 parent a519f26 commit 4c5434e

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)