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