CommandLineParser parser = new PosixParser();
try {
CommandLine cmd = parser.parse( options, args);
if(cmd.hasOption("project")||cmd.hasOption("source")){
FileProcessor processor = new FileProcessor();
if(cmd.hasOption("quiet")){
processor.setQuiet();
}else if (cmd.hasOption("verbose")){
processor.setVerbose();
}
processor.process(
cmd.getOptionValue("project"),
cmd.getOptionValues("source")
);
processor.saveToFolder(
cmd.getOptionValue("output"),
cmd.getOptionValue("template"));
}else{
wrongCli("Project XML file or source files should be specified");
}