Typer - group \ inheritance arguments

176 Views Asked by At

I have several commands in the same typer app that get the same params or at least some of them (e.g. database connection arguments), but they are not sub-commands of each other.

I want to avoid copy-pasting those arguments for each command but rather define some sort of inheritance or grouping of arguments.

Bonus point - is there something similar to argparse mutually exclusive groups in typer?

0

There are 0 best solutions below