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
I expect that my users will give my app optional arguments do contain leading double hyphens like --input. But I cannot parse optional arguments that have a single ("-") or double ("--") before the rest of the word, since such an argument does not exist.
To Reproduce
Steps to reproduce the behavior with a minimum self-contained file.
I wanted to retain arguments with single- or double-hypens. I could find no way to escape them and interpret them literally. I expect optional arguments that do contain leading double hyphems like --input.
Screenshots
If applicable, add screenshots to help explain your problem.
Describe the bug
I expect that my users will give my app optional arguments do contain leading double hyphens like
--input
. But I cannot parse optional arguments that have a single ("-") or double ("--") before the rest of the word, since such an argument does not exist.To Reproduce
Steps to reproduce the behavior with a minimum self-contained file.
Replace each part with your own scenario:
main.py
with:Expected behavior
I wanted to retain arguments with single- or double-hypens. I could find no way to escape them and interpret them literally. I expect optional arguments that do contain leading double hyphems like
--input
.Screenshots
If applicable, add screenshots to help explain your problem.
Environment
python -c "import typer; print(typer.__version__)"
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: