I have following code:
options.addOption(OptionBuilder.withLongOpt(SOURCES)
.withDescription("path to sources")
.hasArg()
.withArgName("PATHS")
.create());
...
CommandLineParser parser = new GnuParser();
line = parser.parse(options, args);
...
System.out.println(line.getOptionValues(SOURCES));
I invoke application with parameters
-sources=path1, path2
in result I see ["path1"]
I want to get both arguments. How can I pass it?
what should I write in command line