@Test public void testBeginRowHelp() { assertTrue("-b should say it is inclusive", new DeleteManyCommand().getOptions().getOption("b") .getDescription().contains("row (inclusive)")); }
@Override public Options getOptions() { forceOpt = new Option("f", "force", false, "force deletion without prompting"); final Options opts = super.getOptions(); opts.addOption(forceOpt); opts.addOption(OptUtil.tableOpt("table to delete entries from")); return opts; }
DeleteManyCommand extends ScanCommand { @Override public Options getOptions() { forceOpt = new Option("f", "force", false, "force deletion without prompting"); final Options opts = super.getOptions(); opts.addOption(forceOpt); opts.addOption(OptUtil.tableOpt("table to delete entries from")); return opts; } }
DeleteManyCommand extends ScanCommand { @Override public Options getOptions() { forceOpt = new Option("f", "force", false, "force deletion without prompting"); final Options opts = super.getOptions(); opts.addOption(forceOpt); opts.addOption(OptUtil.tableOpt("table to delete entries from")); return opts; }  }
DeleteManyCommand extends ScanCommand { @Override public Options getOptions() { forceOpt = new Option("f", "force", false, "force deletion without prompting"); final Options opts = super.getOptions(); opts.addOption(forceOpt); opts.addOption(OptUtil.tableOpt("table to delete entries from")); return opts; }  @Override int execute(final String fullCommand, final CommandLine cl, final Shell shellState); @Override String description(); @Override Options getOptions(); }
DeleteManyCommand extends ScanCommand { @Override public Options getOptions() { forceOpt = new Option("f", "force", false, "force deletion without prompting"); final Options opts = super.getOptions(); opts.addOption(forceOpt); opts.addOption(OptUtil.tableOpt("table to delete entries from")); return opts; }  @Override int execute(final String fullCommand, final CommandLine cl, final Shell shellState); @Override String description(); @Override Options getOptions();  }