mirror of https://github.com/embarklabs/embark.git
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:
parent
a03ffd56e5
commit
6ee2ca2b8d
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue