Skip to content

Commit

Permalink
fix: update help message
Browse files Browse the repository at this point in the history
  • Loading branch information
azurejelly committed Aug 31, 2024
1 parent 5f49b1c commit 0b9b522
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand All @@ -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);
}
}
Expand Down

0 comments on commit 0b9b522

Please sign in to comment.