commandlineparser / commandlineparser/commandline
Cannot use 2 verbs at the same time
- 主要語言
- C#
- 星號
- 4.8k
- 分支
- 478
- PR 合併指標
- 30 天內沒有已合併 PR
描述
**Issue by [dmikov](https://github.com/dmikov)**
_Monday Oct 30, 2017 at 16:05 GMT_
_Originally opened as https://github.com/gsscoder/commandline/issues/497_
----
I have 2 verbs `upgrade` and `validate`, upgrade has 2 options `v` and `c`, the validate has 1 option `f`. If I use them separately it all works, if I put 2 verbs together on command line I am getting the `UnknownOptionError` from second verb option. i.e if the `upgrade` is first, then `f` on `validate` causes the error, if `validate` is first then `v` and `c` cause an error.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
The issue names no files or tests. Start by reproducing the command-line cases with upgrade and validate in both verb orders, then trace the multi-verb option parsing path. Done means each verb accepts its own options when both verbs appear, without UnknownOptionError.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100