Added cmd_connect test for repeated port property

This commit is contained in:
James Booth
2014-01-18 22:50:17 +00:00
parent 21f0bd04a8
commit 91d4097df9
4 changed files with 26 additions and 0 deletions

View File

@@ -110,6 +110,11 @@ cmd_connect(gchar **args, struct cmd_help_t help)
cons_show("");
return TRUE;
}
if (port_set && strcmp("port", opt2) == 0) {
cons_show("Usage: %s", help.usage);
cons_show("");
return TRUE;
}
if (opt2val == NULL) {
cons_show("Usage: %s", help.usage);
cons_show("");