change TelnetConsole options to '-' style

This commit is contained in:
hengyunabc committed 2018-11-08 14:14:33 +08:00
1 parent 326cd2fe9a
commit 5b2fbf36e2
1 file changed
+2 -2
@@ -60,7 +60,7 @@ public class TelnetConsole {
private Integer width = null; private Integer width = null;
private Integer height = null; private Integer height = null;
@Argument(argName = "targetIp", index = 0, required = false) @Argument(argName = "target-ip", index = 0, required = false)
@Description("Target ip") @Description("Target ip")
public void setTargetIp(String targetIp) { public void setTargetIp(String targetIp) {
this.targetIp = targetIp; this.targetIp = targetIp;
@@ -84,7 +84,7 @@ public class TelnetConsole {
this.command = command; this.command = command;
} }
@Option(shortName = "f", longName = "batchFile") @Option(shortName = "f", longName = "batch-file")
@Description("The batch file to execute") @Description("The batch file to execute")
public void setBatchFile(String batchFile) { public void setBatchFile(String batchFile) {
this.batchFile = batchFile; this.batchFile = batchFile;