commandlineparser / commandlineparser/commandline
Control over Help Text Headers
- 主要语言
- C#
- 星标
- 4.8k
- 派生
- 478
- PR 合并指标
- 30 天内没有已合并 PR
描述
When (and only when) the help text is shown, it adds the application name, version, and copyright info before writing the options details. However, I'd either like to include with every run, or exclude it completely so I can output my own info. However, I can't figure out how to do that.
I'm just using the default ParseArguments/MapResult code:
`
return Parser.Default.ParseArguments(args)
.MapResult(
(AddOptions opts) => RunAddAndReturnExitCode(opts),
(CommitOptions opts) => RunCommitAndReturnExitCode(opts),
(CloneOptions opts) => RunCloneAndReturnExitCode(opts),
errs => 1);
`
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 issue 中所示的 Parser.Default.ParseArguments 和 MapResult 入口点开始,然后追踪帮助文本的生成方式。当调用方能够在每次运行时始终包含应用程序标头,或完全省略该标头,并且行为与请求的选择一致时,工作即告完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100