How can I get NDesk to parse multi arg lists at the command line (C#)?
I have two flags that both take multiple parameters (a list of files). So one is -j and the other is -c. But I think NDesk requires each of these parameters to be preceded with the -j/-c)
For instance I want:
%> main -j file1.j file2.j file3.j -c file4.c file5.c file6.c file7.c
And have it produce the 2 lists, one with the .j files and the other with the .c files. But, it expects every file listed this way to be preceded by the flag.
So this will work:
%> main -j file1.j -j file2.j -j file3.j -c file4.c -c file5.c -c file6.c -c file7.c
Though I'd rather have the first version.
Is there a way to do this with the NDesk.Options lib? I've read most of the documentation and I don't think that it is.