commandlineparser / commandlineparser/commandline
Not meaningful error in case of options with same name
Abierto
- Lenguaje dominante
- C#
- Estrellas
- 4.8k
- Forks
- 478
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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 :)
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.