vorpal
vorpal copied to clipboard
.catch should not trigger on a command group
trafficstars
when not implementing a catch hook, typing in a command of a group gives you the help for it's subcommands.
if however you implement a catch hook, the catch hook is triggered instead.
I think it would still be useful to show the help for a command group, instead of triggering the catch.
Ah good point. Agreed.
do the catch and show the help:
.catch(function(err){
})
.then(function(){
// show the help
})
?