class documentation
Arguments are positional parameters to a command. They generally provide fewer features than options but can have infinite ``nargs`` and are required by default. All parameters are passed onwards to the parameter constructor.
Method | __init__ |
Undocumented |
Method | add |
Undocumented |
Method | get |
Get a stringified version of the param for use in error messages to indicate which param caused the error. |
Method | get |
Undocumented |
Method | make |
Undocumented |
Class Variable | param |
Undocumented |
Property | human |
Returns the human readable name of this parameter. This is the same as the name for options, but the metavar for arguments. |
Method | _parse |
Undocumented |
Inherited from Parameter
:
Method | __repr__ |
Undocumented |
Method | consume |
Undocumented |
Method | get |
Get the default for the parameter. Tries :meth:`Context.lookup_default` first, then the local default. |
Method | get |
Undocumented |
Method | handle |
Undocumented |
Method | process |
Undocumented |
Method | resolve |
Undocumented |
Method | shell |
Return a list of completions for the incomplete value. If a ``shell_complete`` function was given during init, it is used. Otherwise, the :attr:`type` :meth:`~click.types.ParamType.shell_complete` function is used. |
Method | to |
Gather information that could be useful for a tool generating user-facing documentation. |
Method | type |
Convert and validate a value against the option's :attr:`type`, :attr:`multiple`, and :attr:`nargs`. |
Method | value |
Undocumented |
Method | value |
Undocumented |
Instance Variable | callback |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | envvar |
Undocumented |
Instance Variable | expose |
Undocumented |
Instance Variable | is |
Undocumented |
Instance Variable | metavar |
Undocumented |
Instance Variable | multiple |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | nargs |
Undocumented |
Instance Variable | opts |
Undocumented |
Instance Variable | required |
Undocumented |
Instance Variable | secondary |
Undocumented |
Instance Variable | type |
Undocumented |
Instance Variable | _custom |
Undocumented |
overrides
click.core.Parameter.__init__
Undocumented
Parameters | |
paramt.Sequence[ | Undocumented |
required:t.Optional[ | Undocumented |
**attrs:t.Any | Undocumented |
overrides
click.core.Parameter.add_to_parser
Undocumented
Parameters | |
parser:OptionParser | Undocumented |
ctx:Context | Undocumented |
overrides
click.core.Parameter.human_readable_name
Returns the human readable name of this parameter. This is the same as the name for options, but the metavar for arguments.
overrides
click.core.Parameter._parse_decls
Undocumented
Parameters | |
decls:t.Sequence[ | Undocumented |
exposebool | Undocumented |
Returns | |
t.Tuple[ | Undocumented |