dthree / vorpal

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

Allow exit when no option is matched #180

Open tocttou opened 8 years ago

tocttou commented 8 years ago
vorpal
  .catch('[catch...]')
  .option('-p', '`-p <PID>`')
  .action((args, cb) => {
    if (args.options.p) {
      console.log('yo');
    } else {
      console.log(':(');
    }
  })

This does not drop out of the shell if the supplied option is incorrect.

tocttou commented 7 years ago

No update here since then.