We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a519f26 + 4c5434e commit d93d6afCopy full SHA for d93d6af
shtab/__init__.py
@@ -414,7 +414,7 @@ def format_optional(opt):
414
415
def format_positional(opt):
416
return '"{nargs}:{help}:{pattern}"'.format(
417
- nargs={"+": "*", "*": "*"}.get(opt.nargs, ""),
+ nargs={"+": "(*)", "*": "(*):"}.get(opt.nargs, ""),
418
help=escape_zsh((opt.help or opt.dest).strip().split("\n")[0]),
419
pattern=complete2pattern(opt.complete, "zsh", choice_type2fn)
420
if hasattr(opt, "complete")
0 commit comments