@Test public void testUsage() { HelpCommand command = new HelpCommand(new Shell()); Usage usage = command.usage(); assertThat(usage.synopsis(), is("help <command>")); assertThat(usage.options().size(), is(0)); }
@Override public Usage usage() { return new Usage("help <command>"); }
HelpCommand implements Command { @Override public Usage usage() { return new Usage("help <command>"); } }
HelpCommand implements Command { @Override public Usage usage() { return new Usage("help <command>"); } HelpCommand(Shell shell); }
HelpCommand implements Command { @Override public Usage usage() { return new Usage("help <command>"); } HelpCommand(Shell shell); @Override String name(); @Override Usage usage(); @Override void run(Line line); }
HelpCommand implements Command { @Override public Usage usage() { return new Usage("help <command>"); } HelpCommand(Shell shell); @Override String name(); @Override Usage usage(); @Override void run(Line line);  }