commandlineparser / commandlineparser/commandline

Is it possible to create options with conditional parameters with help generation like in linux tail?

オープン
#952 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
4.8k
フォーク
478
PR マージ指標
30日以内にマージされた PR はありません

説明

In linux `tail` option `-f` and `--follow` are distinct in that former do not allow to set any values, but latter allow to set `name` or `descriptor` values.
```
-f, --follow[={name|descriptor}]
output appended data as the file grows;
an absent option argument means 'descriptor'
```

Is it possible to define options class to allow that **with** automatic help generation accordingly?
If it is not possible to generate help, is it possible to just create options to allow the distinction?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、オプション定義 API と自動ヘルプ生成 API を追跡し、次に短いエイリアスと長いエイリアスをどのように表現しているかを比較します。オプションが、引数が存在しない場合と、名前またはディスクリプターが明示的に指定された場合を区別できるか確認します。条件付きパラメーターがサポートされ、ヘルプ出力が要求された tail スタイルの構文に一致するか、またはその制限が文書化されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
cli
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。