From a31305458b54eb258064a69527ffde6b8294687e Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 29 Dec 2025 12:49:07 -0600 Subject: [PATCH] fix: add `--comment` param for wutta typer commands subcommand logic is responsible for doing something with it, if needed --- src/wuttjamaican/cli/base.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/wuttjamaican/cli/base.py b/src/wuttjamaican/cli/base.py index e91c485..a9addfe 100644 --- a/src/wuttjamaican/cli/base.py +++ b/src/wuttjamaican/cli/base.py @@ -80,12 +80,22 @@ def typer_callback( # pylint: disable=unused-argument help="Username responsible for running the command (where applicable).", ), ] = 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 top-level args: - * ``--config`` (and ``-c``) + * ``--config`` (and/or ``-c``) + * ``--runas`` + * ``--comment`` (or ``-m``) This callback is responsible for creating the :term:`config object` for the command. (It calls :func:`make_cli_config()` for