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
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100