refactor(@embark/cmd): exit with error when command is unknown

Example: `embark rest && embark run`

The command/s following `&&` shouldn't run after the first one fails and prints
an "unknown command" message.
This commit is contained in:
Michael Bradley, Jr 2019-10-28 12:53:20 -05:00 committed by Michael Bradley
parent a03ffd56e5
commit 6ee2ca2b8d
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ class Cmd {
console.log((__('did you mean') + ' "%s"?').green, suggestion);
}
console.log("type embark --help to see the available commands");
process.exit(0);
process.exit(1);
});
}