use of com.ontology2.centipede.parser.OptionParser in project centipede by paulhoule.
the class CentipedeShell method parseOptions.
private CentipedeShellOptions parseOptions(String[] arguments) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
ApplicationContext bootstrapContext = newContext(getBootstrapApplicationContextPath());
OptionParser parser = new OptionParser(CentipedeShellOptions.class);
wireupOptionParser(bootstrapContext, parser);
closeContext(bootstrapContext);
return (CentipedeShellOptions) parser.parse(newArrayList(arguments));
}
Aggregations