commandlineparser / commandlineparser/commandline

Control over Help Text Headers

Aberta
#248 0 comentários 4 reações 0 responsáveis Ver no GitHub
Linguagem predominante
C#
Estrelas
4.8k
Forks
478
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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);
`

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
csharp
Domínio
cli
Tipo de issue
Funcionalidade
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.