MWArgument#

class lsst.daf.butler.cli.utils.MWArgument(param_decls: Sequence[str], required: bool | None = None, **attrs: Any)#

Bases: Argument

Overrides click.Argument with desired behaviors.

Methods Summary

make_metavar([ctx])

Make the metavar for the help menu.

Methods Documentation

make_metavar(ctx: Context | None = None) str#

Make the metavar for the help menu.

Parameters#

ctxclick.Context or None

Context from the command.

Notes#

Overrides click.Option.make_metavar. Always adds a space and an ellipsis (’ …’) after the metavar name if the option accepts multiple inputs.

By default click adds an ellipsis without a space between the metavar and the ellipsis, but we prefer a space between.

Returns#

metavarstr

The metavar value.