cli --version #30

Closed
halkeye opened this Issue Apr 28, 2012 · 1 comment

Projects

None yet

2 participants

halkeye commented Apr 28, 2012

$ node -v
v0.6.12

$ node

typeof null
'object'

This makes the check
if (typeof cli.version === 'undefined') {
cli.parsePackageJson();
}
Fail every time

I've changed it to
if (typeof cli.version === 'undefined' || cli.version == null) {
cli.parsePackageJson();
}
which works, but i'm not sure if its a proper fix, and do you want a pull request?

Contributor
chriso commented Apr 29, 2012

Should just be cli.version == null. Fixed now, thanks

@chriso chriso closed this Apr 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment