fs_cli: ignore leading spaces on the CLI

This commit is contained in:
Travis Cross 2011-09-22 04:41:31 +00:00
parent ee94dac7cb
commit 1e93151b79
1 changed files with 1 additions and 0 deletions

View File

@ -640,6 +640,7 @@ static const char *cli_usage =
static int process_command(esl_handle_t *handle, const char *cmd)
{
while (*cmd == ' ') cmd++;
if ((*cmd == '/' && cmd++) || !strncasecmp(cmd, "...", 3)) {
if (!strcasecmp(cmd, "help")) {
printf("%s", cli_usage);