Skip to content
Myr

Fix a few typos.

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

authored by unknown · committed by unknown · parent c438e1a · Browse files · 2 files+5 added−5 removed
This commit

State

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

Diff stats

2 files+5 added−5 removed

  • other:+5 added−5 removed

2 files+5 added−5 removed

modified:docs/documentation.rst+1 added-1 removed
34 unmodified lines
3536.. _documenting-arguments:3738Documenting Arguments39~~~~~~~~~~~~~~~~~~~~~39----------------------4041:func:`click.argument` does not take a ``help`` parameter. This is to42follow the general convention of Unix tools of using arguments for only43the most necessary things, and to document them in the command help text
224 unmodified lines
modified:docs/parameters.rst+4 added-4 removed
20 unmodified lines
2122* are optional with in reason, but not entirely so.23* Recommended to use for subcommands, urls, or files.24* Can take an arbitrary number of arguments.25* Are not fully documented by the help page since they may be too specific to be automatically documented. How to document args is covered in :ref:`documenting args section <documenting-arguments>`.26* Can be pulled from environment variables but only explicitly named ones. See :ref:`environment-variables` for further explanation.25* Are not fully documented by the help page since they may be too specific to be automatically documented. For more see :ref:`documenting-arguments`.26* Can be pulled from environment variables but only explicitly named ones. For more see :ref:`environment-variables`.2728.. _parameter_names:2930Parameter Names31---------------3233Parameters (both options and arguments) have a name that will be used as33Parameters (options and arguments) have a name that will be used as34the Python argument name when calling the decorated function with35values.3637.. click:example::
1 unmodified line
39 @click.command()40 @click.argument('filename')41 @click.option('-t', '--times', type=int)42 def multi_echo(filename, times):43 """Print value of SRC environment variable."""43 """Print value filename multiple times."""44 for x in range(times):45 click.echo(filename)4647In the above example the argument's name is ``filename``. The name must match the python arg name. To provide a different name for use in help text, see :ref:`doc-meta-variables`.
90 unmodified lines