We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For example, if you have a Pydantic model with an enum type, the flag will be displayed as:
--skew SKEW (type:DeskewDirection default:DeskewDirection.Y)
Similarly, if you use a Literal:
Literal
class Model(BaseModel): bar: Literal["x", "y"]
you get:
--bar BAR (type:typing.Literal['x', 'y'] required=True)
In all of these cases, we have a readily accessible list of options, and it would be much more user friendly to provide these in the help.
Compare this to argparse's choices, which are printed as:
argparse
usage: game.py [-h] {rock,paper,scissors}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For example, if you have a Pydantic model with an enum type, the flag will be displayed as:
Similarly, if you use a
Literal
:you get:
In all of these cases, we have a readily accessible list of options, and it would be much more user friendly to provide these in the help.
Compare this to
argparse
's choices, which are printed as:The text was updated successfully, but these errors were encountered: