Skip to content
Myr

Fix documenting-arguments anchor in docs (#2921)

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

authored by Rowlando13 · committed by GitHub · parents 1725157, 483971c · 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:docs/documentation.rst+2 added-2 removed
28 unmodified lines
2930 invoke(hello, args=['--help'])313233.. _documenting-arguments:3433Command Short Help34------------------3536For subcommands, a short help snippet is generated. By default, it's the first sentence of the docstring. If too long, then it will ellipsize what cannot be fit on a single line with ``...``. The short help snippet can also be overridden with ``short_help``:
30 unmodified lines
67.. click:run::6869 invoke(init, args=['--help'])7071.. _documenting-arguments:7273Documenting Arguments74----------------------7576:class:`click.argument` does not take a ``help`` parameter. This follows the Unix Command Line Tools convention of using arguments only for necessary things and documenting them in the command help text
191 unmodified lines