commandlineparser / commandlineparser/commandline
Just giving --version as argument gives an error
- 主要語言
- C#
- 星號
- 4.8k
- 分支
- 478
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I look around the issues and found a couple of issues that are close to mine but not quite.
The problem I have is just giving the "--version" as a argument gives an error. I can handle the version with .WithNotParsed and write out "version" at the end of the list but it always gives an error too. "--help" works fine without an error.
Am I missing something? Is it also possible to not show the options if you just want to give the version information?
H:\>SEMImages.exe --version
SEMImages 2.0.0.0
Linus Silvander © 2021
ERROR(S):
Option 'version' is unknown.
-f, --file Choose file to analyze. If both a file and directory is given, the file will be used.
-d, --dir Choose directory to analyze. If no directory is given the current path will be used.
--aperture Add aperture size.
--detector Add detector used.
--date Add date when image was taken.
--EHT Add acceleration voltage.
--mag Add magnification.
--stage Add all stage values. Scan rotation is only added if turned on.
--time Add time when image was taken.
--WD Add working distance.
--help Display this help screen.
--version Display version information.
version
H:\>
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
首先重現回報的 `SEMImages.exe --version` 行為,並檢查命令列剖析器如何處理版本選項與 `--help` 的差異。確認 `--version` 是否可以在不產生未知選項錯誤且不顯示其他選項的情況下完成;當版本輸出被乾淨地回傳時即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100