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
When executing python scratch.py --name or python scratch.py -n, happend Option '-n' requires an argument., but it should detect the default value and return it instead of forcing a value to be filled in, if using typer.Argument , it doesn't have any problems
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First Check
Commit to Help
Example Code
Description
When executing
python scratch.py --name
orpython scratch.py -n
, happendOption '-n' requires an argument.
, but it should detect the default value and return it instead of forcing a value to be filled in, if usingtyper.Argument
, it doesn't have any problemsOperating System
Windows
Operating System Details
No response
Typer Version
0.6.1
Python Version
3.8.10
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions