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
makes it required and displays as [required] in help (good)
still shows [default: None] in help (not good) which is very confusing since this default will never be used and conflicts with the 'required' label for this option
Suggestion: remove [required] label in help for required options. (yes, there's show_default but does it make sense having it default to True in this case?)
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
If provided with an option without a default, it:
[required]
in help (good)[default: None]
in help (not good) which is very confusing since this default will never be used and conflicts with the 'required' label for this optionSuggestion: remove
[required]
label in help for required options. (yes, there'sshow_default
but does it make sense having it default to True in this case?)Operating System
macOS
Operating System Details
No response
Typer Version
0.9.0
Python Version
3.11.5
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions