commandlineparser / commandlineparser/commandline

Zero is not allowed in range of sequence option specifications.

Offen
#302 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C#
Sterne
4.8k
Forks
478
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I need a way to indicate that I don't accept any Value parameters.
I tried
[Value(0, Max=0)]
public IEnumerable Items {get; set;}

but get this error. Seems like there currently is no way to say you don't want any values. min value for the Max property is 1.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.