commandlineparser / commandlineparser/commandline
Add MapResult example to HelpText Configuration Wiki
- 主要言語
- C#
- スター
- 4.8k
- フォーク
- 478
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Please add the following example to the https://github.com/commandlineparser/commandline/wiki/HelpText-Configuration page.
```
class Program {
static int Main(string[] args) {
var parserResult = new Parser(c => c.HelpWriter = null).ParseArguments(args);
return parserResult.MapResult(
(Options opts) => new Run(opts),
errs => DisplayHelp(parserResult, errs)
);
}
static int DisplayHelp(ParserResult parserResult, IEnumerable errs) {
Console.WriteLine(HelpText.AutoBuild(parserResult, h => {
h.AddPreOptionsLine(Environment.NewLine + "Use this tool wisely!");
return h;
}));
return 1;
}
}
```
Also I had a great trouble finding this page, please add more links to it.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
issue にリンクされている HelpText Configuration wiki ページを開き、既存の例とナビゲーションリンクを確認します。提供された C# MapResult の例を追加し、そのページへのリンクを追加して見つけやすくします。wiki ページ上で例とリンクが表示され、正しくフォーマットされていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 55/100