You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
493 B
26 lines
493 B
package com.crawler.command;
|
|
|
|
import com.crawler.view.ConsoleView;
|
|
|
|
public class HelpCommand implements Command {
|
|
private final ConsoleView view;
|
|
|
|
public HelpCommand(ConsoleView view) {
|
|
this.view = view;
|
|
}
|
|
|
|
@Override
|
|
public void execute(String[] args) {
|
|
view.displayHelp();
|
|
}
|
|
|
|
@Override
|
|
public String getCommandName() {
|
|
return "help";
|
|
}
|
|
|
|
@Override
|
|
public String getDescription() {
|
|
return "Show help message";
|
|
}
|
|
}
|
|
|