commandlineparser / commandlineparser/commandline

Initializing a parser with the configuration lambda does nothing.

Aperta
#269 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
4.8k
Fork
478
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.