@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");
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/...)"
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/...) "
.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."