commandlineparser / commandlineparser/commandline

Initializing a parser with the configuration lambda does nothing.

オープン
#269 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
4.8k
フォーク
478
PR マージ指標
30日以内にマージされた PR はありません

説明

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!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。