Display default values in help section of testtool
[netconf.git] / netconf / tools / netconf-testtool / src / main / java / org / opendaylight / netconf / test / tool / TesttoolParameters.java
index 74965fba3b2cf36d018e0e4687dea409a610f8c4..c6c48d1cd663f277ba8b8a3416809ce05cf265e7 100644 (file)
@@ -79,7 +79,7 @@ public final class TesttoolParameters {
 
     @SuppressWarnings("checkstyle:lineLength")
     static ArgumentParser getParser() {
-        final ArgumentParser parser = ArgumentParsers.newArgumentParser("netconf testtool");
+        final ArgumentParser parser = ArgumentParsers.newArgumentParser("netconf testtool").defaultHelp(true);
 
         parser.description("netconf testtool");
 
@@ -119,7 +119,6 @@ public final class TesttoolParameters {
 
         parser.addArgument("--controller-ip")
                 .type(String.class)
-                .setDefault("127.0.0.1")
                 .help("Ip of controller if available it will be used for spawning netconf connectors via topology"
                         + " configuration as a part of"
                         + " URI(http://<controller-ip>:<controller-port>/rests/data/...)"
@@ -128,7 +127,6 @@ public final class TesttoolParameters {
 
         parser.addArgument("--controller-port")
                 .type(Integer.class)
-                .setDefault(8181)
                 .help("Port of controller if available it will be used for spawning netconf connectors via topology "
                         + "configuration as a part of"
                         + " URI(http://<controller-ip>:<controller-port>/rests/data/...) "
@@ -221,7 +219,7 @@ public final class TesttoolParameters {
                 .help("the maximum time in seconds for executing each PATCH request")
                 .dest("time-out");
 
-        parser.addArgument("-ip")
+        parser.addArgument("--ip")
                 .type(String.class)
                 .setDefault("0.0.0.0")
                 .help("Ip address which will be used for creating a socket address."