commandline icon indicating copy to clipboard operation
commandline copied to clipboard

Is there a way to have multiple instances of the same option?

Open cdmihai opened this issue 6 years ago • 1 comments

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;}

cdmihai avatar Jul 21 '17 00:07 cdmihai

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.

nemec avatar Jul 21 '17 02:07 nemec