Adding common parameters to groups with Click
问题 I am trying to use the Python library Click, but struggle to get an example working. I defined two groups, one of which ( group2 ) is meant to handle common parameters for this group of commands. What I want to achieve is that those common parameters get processed by the group function ( group2 ) and assigned to the context variable, so they can be used by the actual commands. A use case would be a number of commands that require username and password, while some others don't (not even