Skip to content

Commit 32d7aa9

Browse files
committed
HubTester: fix help command
1 parent f9c9041 commit 32d7aa9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/net/sharksystem/hub/peerside/HubTester.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ public static void main(String[] args) throws IOException, SharkException, Inter
131131
" -V, --version Print version information and exit.\n" +
132132
"If the HubTester is to be used for sending messages, the following argument must be passed:\n" +
133133
" --send [baseMessage] [count] [delay in milliseconds]";
134-
135134
Map<String, List<String>> params = new HashMap<>();
136135
List<String> options = null;
137136
for (String a : args) {
@@ -152,7 +151,7 @@ public static void main(String[] args) throws IOException, SharkException, Inter
152151
}
153152
}
154153
// check for help text
155-
if(!getMapValue(params, "help", "").isEmpty()){
154+
if(params.get("help") != null){
156155
System.out.println(helpText);
157156
System.exit(0);
158157
}

0 commit comments

Comments
 (0)