fs_cli: ignore leading spaces on the CLI
This commit is contained in:
parent
ee94dac7cb
commit
1e93151b79
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue