commandlineparser / commandlineparser/commandline

Code example misses iEnumerable

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

Description

**Describe the bug**
Displayed C# code doesn't work

**To Reproduce**
Go to the wiki and look at source code C# "Example 1"
https://github.com/commandlineparser/commandline/wiki/HelpText-Configuration

**Additional context**
The the code "Example 1" following code is wrong:
```
static void DisplayHelp(ParserResult result)
```

It should be
```
static void DisplayHelp(ParserResult result,IEnumerable< Error> errs)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Open the HelpText-Configuration wiki page and inspect the C# “Example 1” source shown in the issue. Update the example's DisplayHelp signature to include the IEnumerable errs parameter, then verify that the displayed code matches the requested signature and remains valid C#.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.