commandlineparser / commandlineparser/commandline

OptionsBase class for all cmd line projects in a solution

未关闭
#753 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。