Skip to content

Help Text Displays 'help' Option/Verb if AutoHelp is 'False' #455

Closed
@x789

Description

@x789

Description

If I configure the parser to not support the implicit option/verb 'help', the help text still contains the option/verb.
(This is possibly related to #414)

Expected Behavior

I expect that the option/verb is not displayed.

Environment

  • .NET Core 2.2 Application
  • CommandLineParser Nuget Package 2.5.0

How to Reproduce

  1. Configure the parser:
    var parser = new Parser(config =>
      {
        config.AutoHelp = false;
        config.HelpWriter = Console.Out;
      });
    var parserResult = parser.ParseArguments ...
    
  2. Execute your program with --help

    ERROR(S):
    Verb '--help' is not recognized.

    --help Display this help screen.

    --version Display version information.

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