+
+ if (parsedArgs.contains(FUNCTION)) {
+ String func = parsedArgs.get(FUNCTION);
+ String[] moduleAndFunc = splitFunction(func);
+ if (moduleAndFunc != null) {
+ try {
+ LOGGER.info("Invoking SCL function {}/{}", moduleAndFunc[0], moduleAndFunc[1]);
+ SCLContext.getCurrent().put(SCLReportingHandler.REPORTING_HANDLER, SCLReportingHandler.DEFAULT);
+ Simantics.applySCL(moduleAndFunc[0], moduleAndFunc[1], Tuple0.INSTANCE);
+ } catch (Throwable t) {
+ LOGGER.error("Invocation failed", t);
+ }
+ } else {
+ LOGGER.error("SCL function '{}' not invocable for baselining the database", func);
+ }
+ }
+