-
It would be a lot of extra noisy code to add It would be nice if I could just pass something to Is there a way to do that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You can do 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 |
Beta Was this translation helpful? Give feedback.
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
parseis 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).