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_declstyping.Any

Parameters to be stored in the option.

**kwargstyping.Any

Keyword arguments for the option.

Attributes Summary

help

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

__call__(*args: Any, **kwargs: Any) Any

Call self as a function.

name() str

Get the name that will be passed to the command function for this option.

opts() list[str]

Get the flags that will be used for this option on the command line.