Skip to content

Help option prints incorrect ShortName #30

@borrrden

Description

@borrrden

With the latest NuGet release, an option is available to set the short name of an option, but the help message outputs what seems like an autogenerated (incorrect) one.

[Option(CommandOptionType.SingleValue, Description = "...", ValueName = "...", ShortName = "c")]
public string ConfigPath { get; set; }

[Option(CommandOptionType.SingleValue, Description = "...", ValueName = "...", ShortName = "s")]
public string CSharpPath { get; set; }

The following is the output line from help:

-c|--config-path ¥<CONFIG_PATH> ...
-c|--csharp-path ¥<CSHARP_PATH> ...

The options parses correctly when passed but the help text is misleading.

Metadata

Metadata

Assignees

Labels

bugclosed-resolvedThis issue is closed because the work done to resolve it is complete.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions