Skip to content

Update the HelpProvider to display multiple long command options #1926

@dsparkplug

Description

@dsparkplug

Is your feature request related to a problem? Please describe.
Something it's necessary to have more than one long command option. For example, when there's no appropriate short option that's not already used. e.g.

[CommandOption("-v|--verbose")]
public bool Verbose { get; set; }

[CommandOption("--vf|--verify")]
public bool Verify { get; set; }

The problem is that only only the first option is displayed when showing the command help text:

OPTIONS:
                                              DEFAULT
    -h, --help                                              Prints help information
    -v, --verbose
         --vf

Describe the solution you'd like
I'd like all options to be displayed in the help text - possibly as a pipe delimited list?

Describe alternatives you've considered
An alternative would be to list the other options in the description - but this is not ideal

Additional context
The HelpOption would need to be changed to allow more than one long name source


Please upvote 👍 this issue if you are interested in it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions