commandlineparser / commandlineparser/commandline

How to access unbound arguments?

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

説明

I would like to pass completely unbound unparsed arguments. From documentation I assumed combination of `[Value]` attribute add dash-dash should work, for example:

```program verb -a 1 2 3 -b 5 6 7 -- ADDITION ARGUMENT COME HERE```

yet it does not seem to be working:

```
[Verb("verb")]
public class Verb
{
[Option('a')]
public IEnumerable A { get; set; };

[Option('b')]
public IEnumerable B { get; set; };

[Value(0)]
public IEnumerable More { get; set; }
}
```

I guess the problem is index 0 on Value, but it seems to be required?
How it supposed to work?

Thanks,

PS. I used `EnableDashDash`
PPS. Is it possible that it is working in general but not for verbs?
PPPS. It seems that `More` gets consumed by 'b' (dash dash is not a circuit breaker when parsing `b`)

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

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

評価

この issue はまだ評価されていません。

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

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