commandline
commandline copied to clipboard
Is there a way to have multiple instances of the same option?
Is there anyway I can express myapp -o a/b/c -o d/e/f -o g/h/i
?
Ideally it could be expressed like:
[Option('o', MultipleInstance = true)]
IEnumerable<string> OutputPaths {get; set;}
Using IEnumerable<>
allows you to provide multiple values (e.g. -o a/b/c d/e/f g/h/i
) but no, it doesn't currently support providing -o
multiple times.