Skip to content

Commit 9bc3f56

Browse files
tannergoodingjonsequitur
authored andcommitted
Updating ArgumentArity.ZeroOrMore and OneOrMore to have int.MaxValue as the maximum number
1 parent 4e3bab1 commit 9bc3f56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/System.CommandLine/ArgumentArity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ internal static FailedArgumentConversionArityResult Validate(
8585

8686
public static IArgumentArity ExactlyOne => new ArgumentArity(1, 1);
8787

88-
public static IArgumentArity ZeroOrMore => new ArgumentArity(0, byte.MaxValue);
88+
public static IArgumentArity ZeroOrMore => new ArgumentArity(0, int.MaxValue);
8989

90-
public static IArgumentArity OneOrMore => new ArgumentArity(1, byte.MaxValue);
90+
public static IArgumentArity OneOrMore => new ArgumentArity(1, int.MaxValue);
9191

9292
internal static IArgumentArity Default(Type type, Argument argument, ISymbol parent)
9393
{

0 commit comments

Comments
 (0)