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`?
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Start by reading Parser.Default.ParseArguments and HelpText.AutoBuild, using the Options class and the existing --help example as the entry points. Determine how help text can be generated without forcing a NotParsed result, then verify that the resulting output matches the help produced through parsing.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100