Skip to content

Commit 188a46e

Browse files
committed
fix #1586
1 parent f8ba3fa commit 188a46e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/System.CommandLine/Option.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public string? ArgumentHelpName
169169
public virtual ArgumentArity Arity
170170
{
171171
get => Argument.Arity;
172-
init
172+
set
173173
{
174174
if (value.MaximumNumberOfValues > 0)
175175
{

src/System.CommandLine/Option{T}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public Option(
6565
public override ArgumentArity Arity
6666
{
6767
get => base.Arity;
68-
init => Argument.Arity = value;
68+
set => Argument.Arity = value;
6969
}
7070
}
7171
}

0 commit comments

Comments
 (0)