Skip to content

Commit 3c947f3

Browse files
committed
[bugfix] Avoid 'IllegalArgumentException: Having a requried argument and a default value makes no sense' when calling 'jmxclient.sh --help'
1 parent 9c86876 commit 3c947f3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

exist-core/src/main/java/org/exist/management/client/JMXClient.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,17 +256,14 @@ private void error(Exception e) {
256256
/* connection arguments */
257257
private static final Argument<String> addressArg = stringArgument("-a", "--address")
258258
.description("RMI address of the server")
259-
.required()
260259
.defaultValue("localhost")
261260
.build();
262261
private static final Argument<Integer> portArg = integerArgument("-p", "--port")
263262
.description("RMI port of the server")
264-
.required()
265263
.defaultValue(DEFAULT_PORT)
266264
.build();
267265
private static final Argument<String> instanceArg = stringArgument("-i", "--instance")
268266
.description("The ID of the database instance to connect to")
269-
.required()
270267
.defaultValue("exist")
271268
.build();
272269
private static final Argument<Integer> waitArg = integerArgument("-w", "--wait")

0 commit comments

Comments
 (0)