commandlineparser / commandlineparser/commandline

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

オープン
#631 コメント 2 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。