{
struct cli_proto *cp;
- if (av[2] == NULL) {
- cli_out(cli, "Available commands:\n");
+ if (av[2] == NULL || *av[2] == '-') {
for (cp = priv; cp->request != NULL; cp++)
cli_out(cli, "%s\n", cp->syntax);
return;
return;
}
}
- cli_param(cli);
+ cli_out(cli, "Unknown request.\nType 'help' for more info.\n");
+ cli_result(cli, CLIS_UNKNOWN);
}
void
break;
if (cp->request == NULL) {
cli_out(cli,
- "Unknown request, type 'help' for more info.\n");
+ "Unknown request.\nType 'help' for more info.\n");
cli_result(cli, CLIS_UNKNOWN);
break;
}