commandlineparser / commandlineparser/commandline
Ability to use Object/Tuple as Option
未关闭
- 主要语言
- C#
- 星标
- 4.8k
- 派生
- 478
- PR 合并指标
- 30 天内没有已合并 PR
描述
Thanks for this awesome library!
Is there any possibility to to something like this:
```csharp
[Option('p', "position", Required = true, HelpText = "This will be cool")]
public object Position{ get; set; }
```
console:
```set-position -p {1,1,1}```
of course `Position` can be a typed object as well or maybe a tuple...
What do you think?
贡献指南
这个仓库没有索引到贡献指南
调研方向
Issue 将属性 [Option] 和命令 set-position -p {1,1,1} 列为期望的用法,但没有指出实现入口或测试。首先明确类型化对象和元组应如何表示和转换,然后定位选项解析和转换测试;对于支持的类型,行为达成一致并具备覆盖后,即可视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100