commandlineparser / commandlineparser/commandline

Initializing a parser with the configuration lambda does nothing.

Ouverte
#269 2 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

A requirement for my project involves that the command line arguments that I pass in look like `argumentKey=argumentValue`. I recognize that this tool defaults to parsing items as `--argumentKey=argumentValue`. So I naturally was led into trying the following.

```cs
static void Main(string[] args){
var parser = new Parser(config => config.EnableDashDash = false);

return parser.ParseArguments(args)
.MapResult(RunMyProgram, errors => -1);
}
```

Problem is though, initializing that new Parser has no effect on the program and there doesn't seem to be any documentation on how to configure the parser.

Any help on this is much appreciated!

Guide de contribution

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

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

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