vantage
vantage copied to clipboard
Command definition - when 0 is given as a argument, it's not recognized
var cmd = this.server.command('use [apps]');
cmd.action(function(args, callback) {
args.apps === undefined // true !
callback();
});
The above applies for the console input:
> use 0
I'd expect args.apps === 0