commandlineparser / commandlineparser/commandline

Is it possible to use repeated non-option-argument options?

未關閉
#631 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C#
星號
4.8k
分支
478
PR 合併指標
30 天內沒有已合併 PR

描述

ssh, tar, and other common tools allow for multiple non-option-argument options and act on their total count. (Implementing this with getopt is pretty trivial).

e.g. `tar -cvf` and `tar -cvvf` produce different output.

Is there a way to do this with CommandLine? I did not see anything promising in the documentation or examples/source code I perused, but I may have missed something.

(This might just be related to #594, but the issue there seems to be with repeated options with _required_ option-arguments)

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

先檢視 CommandLine 的選項解析行為,以及 issue 中提到的文件、範例和原始碼,然後比較 #594 中的相關討論。當支援重複的非選項引數,並具備類似 tar 重複詳細程度旗標的計數相關行為,且測試涵蓋文件中的範例時,這項工作就完成了。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
csharp
領域
cli
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。