commandlineparser / commandlineparser/commandline

How to add custom help while keeping default verb help

Aberta
#948 0 comentários 0 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

I try to always add a line like:

`"Usage: clitool.exe [command] [options]" `when command is called with --help or without.

I could add it like: `AddPreOptionsLine("Usage: clitool.exe [command] [options]"); `but then the help for each verb was gone.

Guia de contribuição

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

Direção de pesquisa

Start by reproducing the reported behavior with AddPreOptionsLine("Usage: clitool.exe [command] [options]") when invoking --help and when no command is supplied. Review the help-customization entry points and examples to determine whether the default verb help can be retained; done means the custom usage line appears without removing each verb's help.

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
Precisa de esclarecimento
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.