public void printUsage(Options options) { optionsHelper.printUsage(getClass().getSimpleName(), options); }
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); } } }
optionsHelper.printUsage(CubeMigrationCheckCLI.class.getName(), options); throw e;
optionsHelper.printUsage(CubeMigrationCheckCLI.class.getName(), options); throw e;
public void printUsage(Options options) { optionsHelper.printUsage(getClass().getSimpleName(), options); }
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); } } }
optionsHelper.printUsage(CubeMigrationCheckCLI.class.getName(), options); throw e;
optionsHelper.printUsage(CubeMigrationCheckCLI.class.getName(), options); throw e;