vorpal icon indicating copy to clipboard operation
vorpal copied to clipboard

.catch should not trigger on a command group

Open sanderhouttekier opened this issue 9 years ago • 2 comments
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.

sanderhouttekier avatar Dec 21 '15 16:12 sanderhouttekier

Ah good point. Agreed.

dthree avatar Dec 21 '15 17:12 dthree

do the catch and show the help:

.catch(function(err){

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

?

ORESoftware avatar Nov 06 '17 07:11 ORESoftware