-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
What are your thoughts on shared argument support for click? Sometimes it is useful to have simple inheritance hierarchies in options for complex applications. This might be frowned upon since click's raison d'etre is dynamic subcommands, however, I wanted to explore possible solutions.
A very simple and trivial example is the verbose example. Assume you have more than one subcommand in a CLI app. An ideal user experience on the CLI would be:
python script.py subcmd -vvvHowever, this wouldn't be the case with click, since subcmd doesn't define a verbose option. You'd have to invoke it as follows:
python script.py -vvv subcmdThis example is very simple, but when there are many subcommands, sometimes a root support option would go a long way to make something simple and easy to use. Let me know if you'd like further clarification.