Closed AljoschaMeyer closed 9 years ago
The following code outputs 0 for the input t -index 0, but outputs undefined for the input t -i 0.
0
t -index 0
undefined
t -i 0
var Vorpal = require('./../../lib/vorpal'); var vorpal = new Vorpal(); vorpal.command('t') .option("-i, --index <index>") .action(function (args, cb) { console.log(args.options.index); cb() }); vorpal.delimiter('foo:').show();
Fixed.
The following code outputs
0
for the inputt -index 0
, but outputsundefined
for the inputt -i 0
.