Skip to content
Myr

small docstring fix in argument decorator

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 308cc08 · Browse files · 1 file+2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:click/decorators.py+2 added-2 removed
132 unmodified lines
133 f.__click_params__.append(param)134135136def argument(*param_decls, **attrs):137 """Attaches an option to the command. All positional arguments are137 """Attaches an argument to the command. All positional arguments are138 passed as parameter declarations to :class:`Argument`; all keyword139 arguments are forwarded unchanged. This is equivalent to creating an140 :class:`Option` instance manually and attaching it to the140 :class:`Argument` instance manually and attaching it to the141 :attr:`Command.params` list.142 """143 def decorator(f):144 _param_memo(f, Argument(param_decls, **attrs))
149 unmodified lines