Skip to content
Myr

adjust the wording so it's similar to the docstring of command

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

authored by Sławek Ehlert · committed by Sławek Ehlert · parent 950fbc2 · Browse files · 1 file+4 added−4 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+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:click/decorators.py+4 added-4 removed
138 unmodified lines
139 arguments are forwarded unchanged (except ``cls``).140 This is equivalent to creating an :class:`Argument` instance manually141 and attaching it to the :attr:`Command.params` list.142143 :param cls: a custom :class:`Argument` subclass that can be instatiated144 instead of a default one.143 :param cls: the argument class to instantiate. This defaults to144 :class:`Argument`.145 """146 def decorator(f):147 ArgumentClass = attrs.pop('cls', Argument)148 _param_memo(f, ArgumentClass(param_decls, **attrs))
7 unmodified lines
156 arguments are forwarded unchanged (except ``cls``).157 This is equivalent to creating an :class:`Option` instance manually158 and attaching it to the :attr:`Command.params` list.159160 :param cls: a custom :class:`Option` subclass that can be instatiated161 instead of a default one.160 :param cls: the option class to instantiate. This defaults to161 :class:`Option`.162 """163 def decorator(f):164 if 'help' in attrs:165 attrs['help'] = inspect.cleandoc(attrs['help'])
136 unmodified lines