MWOptionDecorator¶
- class lsst.daf.butler.cli.utils.MWOptionDecorator(*param_decls: Any, **kwargs: Any)¶
Bases:
object
Wraps the click.option decorator to enable shared options to be declared and allows inspection of the shared option.
- Parameters:
- *param_decls
typing.Any
Parameters to be stored in the option.
- **kwargs
typing.Any
Keyword arguments for the option.
- *param_decls
Attributes Summary
Get the help text for this option.
Methods Summary
__call__
(*args, **kwargs)Call self as a function.
name
()Get the name that will be passed to the command function for this option.
opts
()Get the flags that will be used for this option on the command line.
Attributes Documentation
- help¶
Get the help text for this option. Returns an empty string if no help was defined.
Methods Documentation