version 1.6.4.1, 2013/10/08 09:30:55
|
version 1.6.4.2, 2013/10/08 09:38:55
|
Line 80 int cli_Cmd_Help(void * __restrict cli_buffer, int idx
|
Line 80 int cli_Cmd_Help(void * __restrict cli_buffer, int idx
|
|
|
cli_Printf(buf, "\n"); |
cli_Printf(buf, "\n"); |
if (!args) { |
if (!args) { |
SLIST_FOREACH(cmd, &buf->line_cmds, cmd_next) | SLIST_FOREACH(cmd, &buf->line_cmds, cmd_next) { |
| if (cmd->cmd_level != idx) |
| continue; |
| |
cli_Printf(buf, "%s\t\t%s\n", cmd->cmd_name, cmd->cmd_help); |
cli_Printf(buf, "%s\t\t%s\n", cmd->cmd_name, cmd->cmd_help); |
|
} |
} else { |
} else { |
if (!args[1]) |
if (!args[1]) |
cli_Printf(buf, "Help screen::\n"); |
cli_Printf(buf, "Help screen::\n"); |
Line 90 int cli_Cmd_Help(void * __restrict cli_buffer, int idx
|
Line 94 int cli_Cmd_Help(void * __restrict cli_buffer, int idx
|
return RETCODE_OK; |
return RETCODE_OK; |
|
|
SLIST_FOREACH(cmd, &buf->line_cmds, cmd_next) { |
SLIST_FOREACH(cmd, &buf->line_cmds, cmd_next) { |
|
if (cmd->cmd_level != idx) |
|
continue; |
if (args[1] && (cmd->cmd_level != idx || strcmp(args[1], cmd->cmd_name))) |
if (args[1] && (cmd->cmd_level != idx || strcmp(args[1], cmd->cmd_name))) |
continue; |
continue; |
|
|