From 0b9b522cf09cdebf1e5b0e84e30b7590e5a547d3 Mon Sep 17 00:00:00 2001 From: azujelly Date: Sat, 31 Aug 2024 05:13:07 -0400 Subject: [PATCH] fix: update help message --- .../standalone/inject/config/ConfigurationModule.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } }