Skip to content

Commit

Permalink
chore: return with an exit code of 1 on supplying an unknown command
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Nov 24, 2020
1 parent 746540b commit 66b1610
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@vue/cli/bin/vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ program
console.log(` ` + chalk.red(`Unknown command ${chalk.yellow(cmd)}.`))
console.log()
suggestCommands(cmd)
process.exitCode = 1
})

// add some useful info on help
Expand Down

0 comments on commit 66b1610

Please sign in to comment.