commandlineparser / commandlineparser/commandline
Is it possible to create options with conditional parameters with help generation like in linux tail?
- 主要语言
- C#
- 星标
- 4.8k
- 派生
- 478
- PR 合并指标
- 30 天内没有已合并 PR
描述
In linux `tail` option `-f` and `--follow` are distinct in that former do not allow to set any values, but latter allow to set `name` or `descriptor` values.
```
-f, --follow[={name|descriptor}]
output appended data as the file grows;
an absent option argument means 'descriptor'
```
Is it possible to define options class to allow that **with** automatic help generation accordingly?
If it is not possible to generate help, is it possible to just create options to allow the distinction?
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先跟踪选项定义 API 和自动帮助生成 API,然后比较它们如何表示短别名和长别名。检查选项是否能够区分缺失的参数与明确提供的名称或描述符。完成的标准是支持条件参数,帮助输出符合所要求的尾部样式语法,或者记录该限制。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100