commandlineparser / commandlineparser/commandline
verbs with same or options
- 主要言語
- C#
- スター
- 4.8k
- フォーク
- 478
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hello, I would like to ask you, whether there can be considered having some verbs with similar or even same options? That is, when the option classes have some relations like inheritance or they are based on same type in F#. Is there possibility to have somehow Parsed with additional info related to verb itself - like verb string or verb attribute?
An example in F#
```
open CommandLine
type CommonOptions = {
[]
ConnectionString: string
[]
DbCollection: string
[]
Directory: string
[]
BatchSize: int
[]
Skip: int
}
[]
type SerializeOptions = CommonOptions
[]
type DeserializeOptions = CommonOptions
```
Then the classic handling as described in the main page
` let result = Parser.Default.ParseArguments(argv) ...
`
won't work (matches with NotParsed).
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start with the F# example and the ParseArguments(argv) call shown in the issue. Trace how inherited CommonOptions and Verb attributes are handled, and determine whether shared option types and verb-specific information are supported. Done requires a clearly decided behavior for this case, with the issue's requested usage either supported or explicitly documented as unsupported.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, fsharp
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 22/100