commandlineparser / commandlineparser/commandline
OptionsBase class for all cmd line projects in a solution
- 主要言語
- C#
- スター
- 4.8k
- フォーク
- 478
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
The old version allowed us to create an OptionsBase class. Most of it was easily migrated to the new lib API, but I'm not sure how to tackle the Usage/Help option because the ApplicationAlias property of the Usage attribute cannot be dynamically set, and I see no way to replace this snippet from the OptionsBase:
```
string fileName = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;
help.AddPreOptionsLine(string.Format("Usage: {0}.exe [/i c:\\aossrvtest.ini] [/d 10]", fileName));
help.AddPreOptionsLine(" ");
help.AddPreOptionsLine(" ");
help.AddPreOptionsLine("Arguments:");
help.AddOptions(this);
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、古い OptionsBase 実装と新しい lib API を比較し、Usage 属性、その ApplicationAlias プロパティ、およびここに示されている Help 生成スニペットに焦点を当てます。新しい API で、solution 内のすべてのコマンドラインプロジェクトについて、実行可能ファイル固有の Usage テキストと引数一覧をサポートできるかどうかを確認します。文書化された置き換え方法が特定され、検証されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100