@Test public void testBeginRowHelp() { assertTrue("-b should say it is exclusive", new DeleteRowsCommand().getOptions().getOption("b") .getDescription().contains("(exclusive)")); }
@Override public Options getOptions() { final Options o = new Options(); forceOpt = new Option("f", "force", false, "delete data even if start or end are not specified"); o.addOption(OptUtil.startRowOpt()); o.addOption(OptUtil.endRowOpt()); o.addOption(OptUtil.tableOpt("table to delete a row range from")); o.addOption(forceOpt); return o; }
DeleteRowsCommand extends Command { @Override public Options getOptions() { final Options o = new Options(); forceOpt = new Option("f", "force", false, "delete data even if start or end are not specified"); o.addOption(OptUtil.startRowOpt()); o.addOption(OptUtil.endRowOpt()); o.addOption(OptUtil.tableOpt("table to delete a row range from")); o.addOption(forceOpt); return o; } }
DeleteRowsCommand extends Command { @Override public Options getOptions() { final Options o = new Options(); forceOpt = new Option("f", "force", false, "delete data even if start or end are not specified"); o.addOption(OptUtil.startRowOpt()); o.addOption(OptUtil.endRowOpt()); o.addOption(OptUtil.tableOpt("table to delete a row range from")); o.addOption(forceOpt); return o; }  }
DeleteRowsCommand extends Command { @Override public Options getOptions() { final Options o = new Options(); forceOpt = new Option("f", "force", false, "delete data even if start or end are not specified"); o.addOption(OptUtil.startRowOpt()); o.addOption(OptUtil.endRowOpt()); o.addOption(OptUtil.tableOpt("table to delete a row range from")); o.addOption(forceOpt); return o; }  @Override int execute(final String fullCommand, final CommandLine cl, final Shell shellState); @Override String description(); @Override int numArgs(); @Override Options getOptions(); }
DeleteRowsCommand extends Command { @Override public Options getOptions() { final Options o = new Options(); forceOpt = new Option("f", "force", false, "delete data even if start or end are not specified"); o.addOption(OptUtil.startRowOpt()); o.addOption(OptUtil.endRowOpt()); o.addOption(OptUtil.tableOpt("table to delete a row range from")); o.addOption(forceOpt); return o; }  @Override int execute(final String fullCommand, final CommandLine cl, final Shell shellState); @Override String description(); @Override int numArgs(); @Override Options getOptions();  }