commandlineparser / commandlineparser/commandline

Not meaningful error in case of options with same name

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

説明

Repro:
```csharp
class Options {
[Option('s', "storage", Required = true, HelpText = "Storage account name hosting metrics")]
public string StorageName { get; set; }

[Option('s', "key", Required = true, HelpText = "Key of given storage account")]
public string StorageKey { get; set; }
}
```

Error given is:
`System.InvalidOperationException: 'Sequence contains more than one matching element`

Suggested message:
`One of more options has the same name. Check attributes properties`

Thanks :)

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

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

評価

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

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

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