commandlineparser / commandlineparser/commandline
Display help without requiring ParseArguments
- 主要语言
- C#
- 星标
- 4.8k
- 派生
- 478
- PR 合并指标
- 30 天内没有已合并 PR
描述
**Issue by [Steve887](https://github.com/Steve887)**
_Wednesday Jan 20, 2016 at 01:30 GMT_
_Originally opened as https://github.com/gsscoder/commandline/issues/281_
----
I'm trying to print the help text for my options without having to force a parser error.
Currently, it seems the only way to print the help text is to call something like
```
Parser.Default.ParseArguments(new string[] { "verb", "--help" });
```
I see there's `HelpText.AutoBuild` but that seems to require a NotParsed result.
Is there a way to write the help text for an options class without having to parse arguments? Maybe something like `HelpText.DisplayHelp`?
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先阅读 Parser.Default.ParseArguments 和 HelpText.AutoBuild,并以 Options 类和现有的 --help 示例作为切入点。确定如何在不强制产生 NotParsed 结果的情况下生成帮助文本,然后验证生成的输出是否与通过解析生成的帮助内容一致。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100