Allow mixed naming when setting an option to multiple values

This commit is contained in:
Alexey Golub
2020-03-16 19:47:51 +02:00
parent c854f5fb8d
commit b812bd1423
3 changed files with 44 additions and 7 deletions

View File

@@ -122,6 +122,15 @@ namespace CliFx.Tests
public ValueTask ExecuteAsync(IConsole console) => default;
}
[Command]
private class ArrayOptionCommand : ICommand
{
[CommandOption("option", 'o')]
public IReadOnlyList<string>? Option { get; set; }
public ValueTask ExecuteAsync(IConsole console) => default;
}
[Command]
private class RequiredOptionCommand : ICommand
{