commandlineparser / commandlineparser/commandline

Group verbs in help text

Open
#781 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.8k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

If many verbs (tens or hundreds) are implemented, it's very difficult to find a verb. So it would be useful to be able to group them in the help text, perhaps by sections that can be defined as properties of the VerbAttribute.

Example:

```csharp
[Verb("my-verb1", HelpText = "MyVerb1 help", HelpSection = "Section 1")]
class MyVerb1Options
{ ... }

[Verb("my-verb2", HelpText = "MyVerb2 help", HelpSection = "Section 2")]
class MyVerb2Options
{ ... }
```

The output in the console should then group verbs based on their own section.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.