+ private class HelpCommand implements Command {
+ @Override
+ public String[] getNames() {
+ return new String[] {"?", "h", "help"};
+ }
+
+ @Override
+ public void activate(Console console, String[] args) {
+ for (Command c : commandList) {
+ System.out.println(String.join("|", c.getNames()));
+ }
+ }
+ }
+