This commit is contained in:
Tyrrrz
2021-04-24 20:43:35 +03:00
parent 2bb7e13e51
commit 2d479c9cb6
3 changed files with 18 additions and 6 deletions

View File

@@ -590,10 +590,10 @@ public enum CustomEnum { One, Two, Three }
public class Command : ICommand
{
[CommandParameter(0)]
public List<CustomEnum> Foo { get; set; }
public IReadOnlyList<CustomEnum> Foo { get; set; }
[CommandOption(""bar"")]
public List<CustomEnum> Bar { get; set; }
public IReadOnlyList<CustomEnum> Bar { get; set; }
public ValueTask ExecuteAsync(IConsole console) => default;
}
@@ -638,7 +638,7 @@ public class Command : ICommand
public CustomEnum? Foo { get; set; }
[CommandOption(""bar"")]
public List<CustomEnum?> Bar { get; set; }
public IReadOnlyList<CustomEnum?> Bar { get; set; }
public ValueTask ExecuteAsync(IConsole console) => default;
}