Skip to content

Commit 66b1610

Browse files
chore: return with an exit code of 1 on supplying an unknown command
1 parent 746540b commit 66b1610

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/@vue/cli/bin/vue.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ program
224224
console.log(` ` + chalk.red(`Unknown command ${chalk.yellow(cmd)}.`))
225225
console.log()
226226
suggestCommands(cmd)
227+
process.exitCode = 1
227228
})
228229

229230
// add some useful info on help

0 commit comments

Comments
 (0)