dotnet / dotnet/command-line-api
Show [default: boolean] in --help command
Open
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
System.CommandLine v2.0.6 removed the support for showing [default:boolean] in --help command.
If we set our option default value as "True" or "False", it will not be showing when we enter --help.
Example: v2.0.6
Options:
--IsConnected (REQUIRED) Indicate connection need to be connected (boolean).
Expected:
Options:
--IsConnected (REQUIRED) Indicate connection need to be connected (boolean). [Default: True]
In previous version, it will show True if we set default value as True. Or show False, if we set default value as False
Contributor guide
Assessment
This issue has not been assessed yet.