commandlineparser / commandlineparser/commandline
Question: Value parsing based on type
未關閉
- 主要語言
- C#
- 星號
- 4.8k
- 分支
- 478
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I didn't find anything answering my question thus I'm asking here:
Is it possible to parse the options based on the given type? See the following example
```sh
teleport 123 456
```
```sh
tepeport otherside
```
And I have the following options class (record for the sake of brevity):
```c#
public record MyTeleportOptions(string Target, int X, int Y);
```
Is that possible? What other options do I have?
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
未指定原始檔案、測試或進入點;首先在儲存庫中找出選項解析和型別轉換程式碼。確認是否支援具型別的位置引數解析,並記錄結果或定義所需行為;涵蓋範例命令是完成標準。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 15/100