Open taranlu-houzz opened 1 year ago
I didn't think about it before, but it seems like an obvious solution to this is to just use show_default=False
. Still, might be worth changing the default behavior.
when using show_default = False, it would be nice if a default added by the programmer [which is sometimes the reason for this] it would be nice if there is something that looks like a default e.g [default: ....] it would also be coloured grey like the normal default text [or is that too magical] I tried with rich styling but it didn't seem to work but my typer maybe too old 0.7.0...
First Check
Commit to Help
Example Code
Description
In order to make the help output less cluttered, it makes sense to hide the
[default: None]
for arguments and required options since a value must always be passed (meaning that the default doesn't really have any use).As an aside, I supposed that the
default
is sometimes used as an "example," so maybe it could make sense to add anexample
param that could be used for this purpose?Wanted Solution
Current help output:
Desired help output:
Wanted Code
Alternatives
No response
Operating System
Linux, macOS
Operating System Details
No response
Typer Version
0.6.1
Python Version
Python 3.8.14
Additional Context
Obviously, this is a personal preference. I just feel that it helps to clean up the
--help
output a little bit.