Skip to content

Commit

Permalink
Customize output for unknown commands
Browse files Browse the repository at this point in the history
show up help along with the warning
  • Loading branch information
jamesgeorge007 committed Jul 19, 2019
1 parent 289e4d9 commit c382b20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ cli

cli
.on('command:*', function(cmd) {
logger.log('info', `Unknown command ${cmd}`)
cli.outputHelp()
logger.log('info', ` Unknown command ${cmd}`)
})

// Start the commands
Expand Down

0 comments on commit c382b20

Please sign in to comment.