3
0
Fork 0

fix: add --comment param for wutta typer commands

subcommand logic is responsible for doing something with it, if needed
This commit is contained in:
Lance Edgar 2025-12-29 12:49:07 -06:00
parent 4382601fe0
commit a31305458b

View file

@ -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