Commits
md_5 authored 0ab84871227
12 12 | import java.util.logging.Logger; |
13 13 | import joptsimple.OptionParser; |
14 14 | import joptsimple.OptionSet; |
15 15 | import org.fusesource.jansi.AnsiConsole; |
16 16 | |
17 17 | public class Main { |
18 18 | public static boolean useJline = true; |
19 19 | public static boolean useConsole = true; |
20 20 | |
21 21 | public static void main(String[] args) { |
22 + | System.setProperty("log4j2.formatMsgNoLookups", "true"); |
23 + | |
22 24 | // Todo: Installation script |
23 25 | OptionParser parser = new OptionParser() { |
24 26 | { |
25 27 | acceptsAll(asList("?", "help"), "Show the help"); |
26 28 | |
27 29 | acceptsAll(asList("c", "config"), "Properties file to use") |
28 30 | .withRequiredArg() |
29 31 | .ofType(File.class) |
30 32 | .defaultsTo(new File("server.properties")) |
31 33 | .describedAs("Properties file"); |