redhat-qe-security / SCAutolib

Library for automation of smart card testing
GNU General Public License v3.0
3 stars 10 forks source link

Common options for CLI commands #75

Open x00Pavel opened 2 years ago

x00Pavel commented 2 years ago

Problem statement:

Each CLI command needs a configuration file for taking values from it. Solution via specifying @click.option decorator for each subcommand in a group seems to be not very clear, and maybe there is a better way to do such thing.

Task:

Investigate possibilities of python click module to make groups of commands with some shared options. If support for such a feature is not very nice, look for another solution to this problem.

Expected result:

All subcommands would obtain the configuration file via the same source/context without specifying this as an option for each subcommand.