} catch (final Throwable ex) { System.err.println("SYNTAX ERROR: " + ex.getMessage()); printHelp(); throw new Exception(null); printHelp(); throw new Exception(null); if (!cmd.hasOption(name)) { System.err.println("SYNTAX ERROR: missing mandatory option " + name); printHelp(); throw new Exception(null);