commandlineparser / commandlineparser/commandline

GetoptMode = true suppresses help.

Open
#907 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

**Describe the bug**
var parser = new Parser(opts => { opts.GetoptMode = true; });
result = parser.ParseArguments....

opts.GetoptMode = true causes the help to be suppressed

**To Reproduce**
Make your own "new Parser" with only GetoptMode = true

**Expected behavior**
The help should show up regardless

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Appending other options to "new Parser" didn't seem to help.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Parser construction and ParseArguments call shown in the report, then trace how GetoptMode affects help handling. Reproduce the issue with a parser configured only with GetoptMode = true and compare the help output with the default parser. Done when help is shown in that configuration and a regression test covers it.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.