MWArgument#
- class lsst.daf.butler.cli.utils.MWArgument(param_decls: Sequence[str], required: bool | None = None, **attrs: Any)#
Bases:
ArgumentOverrides 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#
- ctx
click.ContextorNone 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#
- metavar
str The metavar value.
- ctx