Skip to content

Seperator does not appear in help text when diplaying default values #490

@sorvis

Description

@sorvis

I have the following property in the options:

[Option("branch", Required = false, Separator = ',', HelpText = "Branches to include.",
        Default = new[] { "master", "breakfix" })]
public IEnumerable<string> IncludeBranches { get; set; } 

The separator is set to ',' then a list of string is given for the default.

The help output is:

--branch                (Default: master breakfix) Branches to include.

This would be miss-leading to the user since it does not include the comma. Would it instead make sense to do something like this?

--branch                (Default: master,breakfix) Branches to include.

Activity

moh-hassan

moh-hassan commented on Aug 2, 2019

@moh-hassan
Collaborator

PR is welcome.

added a commit that references this issue on Jul 27, 2023
89a8e78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @sorvis@moh-hassan

      Issue actions

        Seperator does not appear in help text when diplaying default values · Issue #490 · commandlineparser/commandline