commandlineparser / commandlineparser/commandline
I get "Option 'version' is unknown" if it comes after other user-defined options on the command line
- 主要語言
- C#
- 星號
- 4.8k
- 分支
- 478
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Since `version` is pretty much built-in, it should never be "unknown", especially if this message is immediately followed by helptext that clearly shows that it is a valid option.
```
3676 ~/fork/foo-etl$ dotnet etl/bin/Debug/netcoreapp3.0/etl.dll -c foo -d bar --version
etl 0.0.1
Copyright (C) 2020 etl
ERROR(S):
Option 'version' is unknown.
-c, --configdir Required. Path to dir that contains client configurations
-d, --invoicedir Required. Path to dir that contains invoices are
--help Display this help screen.
--version Display version information.
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
重現回報的 `dotnet` 命令:在使用者定義的選項 `-c` 和 `-d` 之後使用 `--version`。追蹤命令列解析器如何處理內建的版本選項,並為此順序新增回歸測試;完成的標準是版本能夠顯示,且不會出現 "unknown" 錯誤。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100