commandlineparser / commandlineparser/commandline

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

Ouverte
#834 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C#
Étoiles
4.8k
Forks
478
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
csharp
Domaine
cli
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Clairement spécifiée
Accessibilité débutants
48/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.