Display an error on unknown command
This commit is contained in:
parent
68925a532d
commit
4753d58c0b
@ -15,6 +15,12 @@ program
|
|||||||
"override entries of the configuration file, must be specified for each entry that needs to be overriden",
|
"override entries of the configuration file, must be specified for each entry that needs to be overriden",
|
||||||
Utils.parseConfigOptions
|
Utils.parseConfigOptions
|
||||||
)
|
)
|
||||||
|
.on("command:*", () => {
|
||||||
|
log.error(
|
||||||
|
`Unknown command. See ${colors.bold("--help")} for a list of available commands.`
|
||||||
|
);
|
||||||
|
process.exit(1);
|
||||||
|
})
|
||||||
.on("--help", Utils.extraHelp);
|
.on("--help", Utils.extraHelp);
|
||||||
|
|
||||||
// Parse options from `argv` returning `argv` void of these options.
|
// Parse options from `argv` returning `argv` void of these options.
|
||||||
|
Loading…
Reference in New Issue
Block a user