protected void parseOptions(Options options, String[] args) throws ParseException { optionsHelper.parseOptions(options, args); }
public final void execute(String[] args) { OptionsHelper optionsHelper = new OptionsHelper(); System.out.println("Running " + this.getClass().getName() + " " + StringUtils.join(args, " ")); try { optionsHelper.parseOptions(getOptions(), args); execute(optionsHelper); } catch (ParseException e) { optionsHelper.printUsage(this.getClass().getName(), getOptions()); throw new RuntimeException("error parsing args", e); } catch (Exception e) { throw new RuntimeException("error execute " + this.getClass().getName() + ". Root cause: " + e.getMessage(), e); } } }
options.addOption(OPTION_BROKER); options.addOption(OPTION_INTERVAL); optionsHelper.parseOptions(options, args);
try { optionsHelper.parseOptions(options, args);
try { optionsHelper.parseOptions(options, args);
protected void parseOptions(Options options, String[] args) throws ParseException { optionsHelper.parseOptions(options, args); }
public final void execute(String[] args) { OptionsHelper optionsHelper = new OptionsHelper(); System.out.println("Running " + this.getClass().getName() + " " + StringUtils.join(args, " ")); try { optionsHelper.parseOptions(getOptions(), args); execute(optionsHelper); } catch (ParseException e) { optionsHelper.printUsage(this.getClass().getName(), getOptions()); throw new RuntimeException("error parsing args", e); } catch (Exception e) { throw new RuntimeException("error execute " + this.getClass().getName() + ". Root cause: " + e.getMessage(), e); } } }
options.addOption(OPTION_BROKER); options.addOption(OPTION_INTERVAL); optionsHelper.parseOptions(options, args);
try { optionsHelper.parseOptions(options, args);
try { optionsHelper.parseOptions(options, args);