package io.gitlab.jfronny.inceptum.cli; import io.gitlab.jfronny.inceptum.Inceptum; import io.gitlab.jfronny.inceptum.model.inceptum.CommandArguments; public class HelpCommand extends Command { public HelpCommand() { super("Displays this screen", "help"); } @Override public void invoke(CommandArguments args) { System.out.println("Inceptum v" + Inceptum.VERSION.version + " (" + Inceptum.VERSION.flavor + ")\n\nCommands:"); for (Command command : Inceptum.COMMANDS) { System.out.println(" " + command.getName() + " - " + command.getHelp()); } } }