commandlineparser / commandlineparser/commandline

commandline/src/CommandLine/Text/HelpText.cs AddLine() calls value.Trim() stripping out example spacing

Aberta
#236 3 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

In generating help text spacing is supposed to be prefixed to the start of the line to make Usage sections easier to read.

AddLine() calls .Trim() which removes spacing from the start of the line. Since whitespace is used for formatting it should not be calling Trim()

Guia de contribuição

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

Direção de pesquisa

Review commandline/src/CommandLine/Text/HelpText.cs and the AddLine() method first. Confirm that leading whitespace used in Usage sections is preserved instead of removed by trimming, then run the repository's relevant tests to verify the help text spacing.

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

Avaliação

Stack de tecnologia
csharp
Domínio
cli
Tipo de issue
Bug
Dificuldade
1/5
Tempo estimado
Menos de uma hora
Status de atividade
Estagnada
Clareza
Claramente especificada
Facilidade para iniciantes
50/100

Receba novas issues na sua caixa de entrada

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