fix: add --comment param for wutta typer commands
subcommand logic is responsible for doing something with it, if needed
This commit is contained in:
parent
4382601fe0
commit
a31305458b
1 changed files with 11 additions and 1 deletions
|
|
@ -80,12 +80,22 @@ def typer_callback( # pylint: disable=unused-argument
|
||||||
help="Username responsible for running the command (where applicable).",
|
help="Username responsible for running the command (where applicable).",
|
||||||
),
|
),
|
||||||
] = None,
|
] = None,
|
||||||
|
comment: Annotated[
|
||||||
|
str,
|
||||||
|
typer.Option(
|
||||||
|
"--comment",
|
||||||
|
"-m",
|
||||||
|
help="Comment to apply to the transaction (where applicable).",
|
||||||
|
),
|
||||||
|
] = None,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Generic callback for use with top-level commands. This adds some
|
Generic callback for use with top-level commands. This adds some
|
||||||
top-level args:
|
top-level args:
|
||||||
|
|
||||||
* ``--config`` (and ``-c``)
|
* ``--config`` (and/or ``-c``)
|
||||||
|
* ``--runas``
|
||||||
|
* ``--comment`` (or ``-m``)
|
||||||
|
|
||||||
This callback is responsible for creating the :term:`config
|
This callback is responsible for creating the :term:`config
|
||||||
object` for the command. (It calls :func:`make_cli_config()` for
|
object` for the command. (It calls :func:`make_cli_config()` for
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue