Skip to content

Show [default: boolean] in --help command #2818

@poasungoh

Description

@poasungoh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions