@Test public void testAddParserNotUnique() { ArgumentParserImpl ap = (ArgumentParserImpl) ArgumentParsers .newFor("prog").build(); SubparsersImpl subparsers = new SubparsersImpl(ap); subparsers.addParser("checkout"); try { subparsers.addParser("checkout"); } catch(IllegalArgumentException e) { assertEquals("command 'checkout' has been already used", e.getMessage()); } }
@Override public SubparserImpl addParser(String command) { return addParser(command, true, mainParser_.getPrefixChars()); }
SubparsersImpl implements Subparsers { @Override public SubparserImpl addParser(String command) { return addParser(command, true, mainParser_.getPrefixChars()); } }
SubparsersImpl implements Subparsers { @Override public SubparserImpl addParser(String command) { return addParser(command, true, mainParser_.getPrefixChars()); } SubparsersImpl(ArgumentParserImpl mainParser); }
SubparsersImpl implements Subparsers { @Override public SubparserImpl addParser(String command) { return addParser(command, true, mainParser_.getPrefixChars()); } SubparsersImpl(ArgumentParserImpl mainParser); @Override SubparserImpl addParser(String command); @Override SubparserImpl addParser(String command, boolean addHelp); @Override SubparserImpl addParser(String command, boolean addHelp,
            String prefixChars); @Override SubparsersImpl dest(String dest); @Override SubparsersImpl help(String help); @Override SubparsersImpl title(String title); String getTitle(); @Override SubparsersImpl description(String description); String getDescription(); @Override SubparsersImpl metavar(String metavar); }
SubparsersImpl implements Subparsers { @Override public SubparserImpl addParser(String command) { return addParser(command, true, mainParser_.getPrefixChars()); } SubparsersImpl(ArgumentParserImpl mainParser); @Override SubparserImpl addParser(String command); @Override SubparserImpl addParser(String command, boolean addHelp); @Override SubparserImpl addParser(String command, boolean addHelp,
            String prefixChars); @Override SubparsersImpl dest(String dest); @Override SubparsersImpl help(String help); @Override SubparsersImpl title(String title); String getTitle(); @Override SubparsersImpl description(String description); String getDescription(); @Override SubparsersImpl metavar(String metavar);  }