You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my @group command(s) I do some basic processing (read config file for mandatory option et al). The problem is that I don't want to do any of that when a subcommand is invoked with --help; I want to show the subcommand help to the user, not the complaint about a missing config file.
Is there a way to do that, other than to dig through sys.argv?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In my
@groupcommand(s) I do some basic processing (read config file for mandatory option et al). The problem is that I don't want to do any of that when a subcommand is invoked with--help; I want to show the subcommand help to the user, not the complaint about a missing config file.Is there a way to do that, other than to dig through
sys.argv?Beta Was this translation helpful? Give feedback.
All reactions