Skip to content
Myr

Merge pull request #1467 from tamsky/patch-2

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

[doc fix] makes @command name arg docs consistent.

authored by David Lord · committed by GitHub · parents 0b8d835, 7bc26d2 · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:click/decorators.py+3 added-3 removed
92 unmodified lines
93 r"""Creates a new :class:`Command` and uses the decorated function as94 callback. This will also automatically attach all decorated95 :func:`option`\s and :func:`argument`\s as parameters to the command.9697 The name of the command defaults to the name of the function. If you98 want to change that, you can pass the intended name as the first99 argument.97 The name of the command defaults to the name of the function with98 underscores replaced by dashes. If you want to change that, you can99 pass the intended name as the first argument.100101 All keyword arguments are forwarded to the underlying command class.102103 Once decorated the function turns into a :class:`Command` instance
208 unmodified lines