MWOptionDecorator

class lsst.daf.butler.cli.utils.MWOptionDecorator(*param_decls, **kwargs)

Bases: object

Wraps the click.option decorator to enable shared options to be declared and allows inspection of the shared 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, **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.