()
| 49 | } |
| 50 | |
| 51 | void go() { |
| 52 | // It's not private to make it visible for tests |
| 53 | if (args.length == 0) { |
| 54 | showHelp(Main.class.getClassLoader()); |
| 55 | } else { |
| 56 | launch(args, Main.class.getClassLoader()); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | private static Set<CliCommand> loadCommands(ClassLoader loader) { |
| 61 | Set<CliCommand> commands = new TreeSet<>(comparing(CliCommand::getName)); |