Skip to content
Discussion options

You must be logged in to vote

You can do @cappa.command(default_long=True).

Although i dont see this mentioned anywhere in the docs other than the autogenerated api reference, and that's worth fixing anyways

The reason it's not an argument to parse is because the choice is very likely tied to the command (you couldn't really flip flop the value between True/False for an arbitrary command and expect it to work both ways, due to various interactions with positional arguments and list inference for example).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by beauxq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants