commandlineparser / commandlineparser/commandline

When `IgnoreUnknownArguments` is true, do not assume any single-dash argument matches a correlating short character option

Aberta
#834 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

Currently, Tokenizer will assume a match for a short option when it encounters a single-dash argument, when the first character matches. This is unexpected when `IgnoreUnknownArguments` is set to true--since it should ignore unknown arguments.

https://github.com/commandlineparser/commandline/blob/b0b0ec9f5470bacc0823c013a599ba3b4e115900/src/CommandLine/Core/Tokenizer.cs#L172-L183

Guia de contribuição

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

Direção de pesquisa

Review src/CommandLine/Core/Tokenizer.cs around lines 172-183 and trace how single-dash arguments are matched when IgnoreUnknownArguments is true. Confirm the change by checking that an unknown single-dash argument is ignored rather than correlated to a short option, while valid short options retain their behavior.

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
2/5
Tempo estimado
1-3 horas
Status de atividade
Estagnada
Clareza
Claramente especificada
Facilidade para iniciantes
48/100

Receba novas issues na sua caixa de entrada

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