dthree / vorpal

Node's framework for interactive CLIs
http://vorpal.js.org
MIT License
5.64k stars 280 forks source link

.catch should not trigger on a command group #64

Open sanderhouttekier opened 8 years ago

sanderhouttekier commented 8 years ago

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.

dthree commented 8 years ago

Ah good point. Agreed.

ORESoftware commented 6 years ago

do the catch and show the help:

.catch(function(err){

})
.then(function(){
  // show the help
})

?