Skip to content
Myr

Make nargs != 1 be documented by hand, looks nicer.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 5e86fcf · Browse files · 1 file+0 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−2 removed

  • other:+0 added−2 removed

1 file+0 added−2 removed

modified:click/core.py-2 removed
979 unmodified lines
980 if self.default is not None and self.show_default:981 extra.append('default: %s' % self.default)982 if self.required:983 extra.append('required')984 if self.nargs != 1:985 extra.append('%d arguments' % self.nargs)984 if extra:985 help = '%s[%s]' % (help and help + ' ' or '', '; '.join(extra))986987 return (' / '.join(rv), help)
90 unmodified lines