docs/parameters.md
(parameters)=
Click supports only two principle types of parameters for scripts (by design): options and arguments.
multiple-options.documenting-arguments.environment-variables.On each principle type you can specify {ref}parameter-types. Specifying these types helps Click add details to your help pages and help with the handling of those types.
(parameter-names)=
Parameters (options and arguments) have a name that will be used as the Python argument name when calling the decorated function with values.
In the 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.
The option's names are -t and --times. More names are available for options and are covered in {ref}options.
.. click:example::
@click.command()
@click.argument('filename')
@click.option('-t', '--times', type=int)
def multi_echo(filename, times):
"""Print value filename multiple times."""
for x in range(times):
click.echo(filename)
.. click:run::
invoke(multi_echo, ['--times=3', 'index.txt'], prog_name='multi_echo')