diff --git a/standalone/src/main/java/com/vexsoftware/nuvotifier/standalone/inject/config/ConfigurationModule.java b/standalone/src/main/java/com/vexsoftware/nuvotifier/standalone/inject/config/ConfigurationModule.java index 91e72e1..e28925d 100644 --- a/standalone/src/main/java/com/vexsoftware/nuvotifier/standalone/inject/config/ConfigurationModule.java +++ b/standalone/src/main/java/com/vexsoftware/nuvotifier/standalone/inject/config/ConfigurationModule.java @@ -62,7 +62,7 @@ public File provideConfigurationDirectory(CommandLine cli, Options options) { return cli.getParsedOptionValue(CommandArguments.CONFIG_FOLDER); } catch (ParseException ex) { HelpFormatter formatter = new HelpFormatter(); - formatter.printHelp(Main.class.getName(), options); + formatter.printHelp("java -jar nuvotifier-standalone.jar", options); System.exit(1); return null; } @@ -114,7 +114,7 @@ public CommandLine getCommandLine(Options options, String[] args) { return parser.parse(options, args); } catch (ParseException ex) { HelpFormatter formatter = new HelpFormatter(); - formatter.printHelp(Main.class.getName(), options); + formatter.printHelp("java -jar nuvotifier-standalone.jar", options); System.exit(1); return null; } @@ -141,7 +141,7 @@ public int getPort(CommandLine cli, Options options, VotifierConfiguration confi return Integer.parseInt(str); } catch (NumberFormatException ex) { HelpFormatter formatter = new HelpFormatter(); - formatter.printHelp(Main.class.getName(), options); + formatter.printHelp("java -jar nuvotifier-standalone.jar", options); System.exit(1); } }