Skip to content

Commit

Permalink
HubTester: fix help command
Browse files Browse the repository at this point in the history
  • Loading branch information
marv1913 committed May 30, 2023
1 parent f9c9041 commit 32d7aa9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/net/sharksystem/hub/peerside/HubTester.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ public static void main(String[] args) throws IOException, SharkException, Inter
" -V, --version Print version information and exit.\n" +
"If the HubTester is to be used for sending messages, the following argument must be passed:\n" +
" --send [baseMessage] [count] [delay in milliseconds]";

Map<String, List<String>> params = new HashMap<>();
List<String> options = null;
for (String a : args) {
Expand All @@ -152,7 +151,7 @@ public static void main(String[] args) throws IOException, SharkException, Inter
}
}
// check for help text
if(!getMapValue(params, "help", "").isEmpty()){
if(params.get("help") != null){
System.out.println(helpText);
System.exit(0);
}
Expand Down

0 comments on commit 32d7aa9

Please sign in to comment.