dotnet / dotnet/command-line-api

Show [default: boolean] in --help command

Open
#2,818 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.