commandlineparser / commandlineparser/commandline

Not meaningful error in case of options with same name

Đang mở
#872 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
4.8k
Fork
478
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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 :)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.