diff options
Diffstat (limited to 'cli/src/cli-cmd.c')
| -rw-r--r-- | cli/src/cli-cmd.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/src/cli-cmd.c b/cli/src/cli-cmd.c index 396cabebbbe..2ee8b1b4968 100644 --- a/cli/src/cli-cmd.c +++ b/cli/src/cli-cmd.c @@ -108,12 +108,14 @@ cli_cmd_process(struct cli_state *state, int argc, char **argv)      }      if (!word) { -        cli_out("unrecognized word: %s (position %d)", argv[i], i); +        cli_out("unrecognized word: %s (position %d)\n", argv[i], i); +        usage();          return -1;      }      if (!word->cbkfn) { -        cli_out("unrecognized command"); +        cli_out("unrecognized command\n"); +        usage();          return -1;      }  | 
