@Test public void subcommands() throws Exception { Result pr = ShellCommandParser.parse("get style"); assertEquals(0, pr.getRemainingArgs().length); assertEquals(ShellGetCommand.class, pr.getFirstCommand()); assertEquals(ShellGetStyleCommand.class, pr.getLastCommand()); pr = ShellCommandParser.parse(" get style "); assertEquals(0, pr.getRemainingArgs().length); assertEquals(ShellGetCommand.class, pr.getFirstCommand()); assertEquals(ShellGetStyleCommand.class, pr.getLastCommand()); }
public static Result parse(String line) throws IntrospectionException, InvalidOptionException { return parse(line, Collections.emptyList()); }
ShellCommandParser { public static Result parse(String line) throws IntrospectionException, InvalidOptionException { return parse(line, Collections.emptyList()); } }
ShellCommandParser { public static Result parse(String line) throws IntrospectionException, InvalidOptionException { return parse(line, Collections.emptyList()); } private  ShellCommandParser(); }
ShellCommandParser { public static Result parse(String line) throws IntrospectionException, InvalidOptionException { return parse(line, Collections.emptyList()); } private  ShellCommandParser(); static String[] split(String line); static Result parse(String line); static Result parse(String line,
            Collection<Class<? extends Command>> excluded); static Result parse(String[] args,
            Collection<Class<? extends Command>> excluded); }
ShellCommandParser { public static Result parse(String line) throws IntrospectionException, InvalidOptionException { return parse(line, Collections.emptyList()); } private  ShellCommandParser(); static String[] split(String line); static Result parse(String line); static Result parse(String line,
            Collection<Class<? extends Command>> excluded); static Result parse(String[] args,
            Collection<Class<? extends Command>> excluded);  }