commandlineparser / commandlineparser/commandline

Control over Help Text Headers

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

Description

When (and only when) the help text is shown, it adds the application name, version, and copyright info before writing the options details. However, I'd either like to include with every run, or exclude it completely so I can output my own info. However, I can't figure out how to do that.

I'm just using the default ParseArguments/MapResult code:

`
return Parser.Default.ParseArguments(args)
.MapResult(
(AddOptions opts) => RunAddAndReturnExitCode(opts),
(CommitOptions opts) => RunCommitAndReturnExitCode(opts),
(CloneOptions opts) => RunCloneAndReturnExitCode(opts),
errs => 1);
`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Parser.Default.ParseArguments and MapResult entry points shown in the issue, then trace how help text is produced. The work is complete when callers can consistently include the application header on every run or omit it entirely, with behavior matching the requested choice.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Feature
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.