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
i.e.: add_argument(choices=...)
add_argument(choices=...)
Maybe interface could be
--arg ARG : choose from [default: dflt|another|third:[str]]
The text was updated successfully, but these errors were encountered:
However, argparse allow user to use different type in choices, such as:
argparse
from argparse import ArgumentParser parser = ArgumentParser() parser.add_argument("--arg", choices = ["a", 1])
So, it may be:
--arg ARG: choose from [default: 1|a:[int:str]]
And
--arg ARG: choose from [default: 1|a:[str]]
should be recognized as
from argparse import ArgumentParser parser = ArgumentParser() parser.add_argument("--arg", choices = ["a", "1"])
Sorry, something went wrong.
casperdcl
No branches or pull requests
i.e.:
add_argument(choices=...)
Maybe interface could be
The text was updated successfully, but these errors were encountered: