vantage icon indicating copy to clipboard operation
vantage copied to clipboard

Command definition - when 0 is given as a argument, it's not recognized

Open fogine opened this issue 9 years ago • 0 comments

    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

fogine avatar Nov 04 '16 16:11 fogine