From 32d7aa96905aca914ed896a20c95c3b096737a91 Mon Sep 17 00:00:00 2001 From: Marvin Rausch Date: Tue, 30 May 2023 15:52:04 +0200 Subject: [PATCH] HubTester: fix help command --- src/main/java/net/sharksystem/hub/peerside/HubTester.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/sharksystem/hub/peerside/HubTester.java b/src/main/java/net/sharksystem/hub/peerside/HubTester.java index 90800e6..f624518 100644 --- a/src/main/java/net/sharksystem/hub/peerside/HubTester.java +++ b/src/main/java/net/sharksystem/hub/peerside/HubTester.java @@ -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> params = new HashMap<>(); List options = null; for (String a : args) { @@ -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); }