1 package eu.svjatoslav.inspector.java;
3 import eu.svjatoslav.commons.commandline.parameterparser.Parser;
4 import eu.svjatoslav.commons.commandline.parameterparser.parameter.FileParameter;
5 import eu.svjatoslav.commons.commandline.parameterparser.parameter.StringParameter;
6 import eu.svjatoslav.commons.commandline.parameterparser.parameter.StringParameters;
8 public class CommandlineConfiguration {
10 public FileParameter jarFile;
11 public StringParameter graphName;
13 public CommandlineConfiguration (String args[]){
14 Parser parser = buildCommandlineParameterParser();
15 if (!parser.parse(args)) {
22 public Parser buildCommandlineParameterParser() {
23 Parser parser = new Parser();
26 new FileParameter("JAR file"))
30 graphName = parser.add(
31 new StringParameter("graph name"))
36 new StringParameters("whitelist glob"))
40 new StringParameters("blacklist glob"))