@Override public void validateInput(String args[]) throws Exception { if (args.length < 2) { engine.inputMessage(); Miscellaneous.exit(); } }
@Override public void init(String args[]) throws Exception { String superArgs[] = null; StatsHolder.getInstanceOf().addStatArgs(args); engine.setDefaults(); try { superArgs = engine.processArgs(args); } catch (Exception d) { engine.inputMessage(); // Miscellaneous.printlnErr("************ ERROR Wrong input: " + d.getMessage()); // d.printStackTrace(); Miscellaneous.exit(); } // do not forget this. However, at the end as third parameter was set above properly super.init(superArgs); System.arraycopy(superArgs, 0, args, 0, args.length); }