Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
fogine opened this issue Nov 4, 2016 · 0 comments
Open

Comments

@fogine
Copy link

fogine commented Nov 4, 2016

    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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant