Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update index.js #1

Merged
merged 1 commit into from
Dec 6, 2013
Merged

Update index.js #1

merged 1 commit into from
Dec 6, 2013

Conversation

martinheidegger
Copy link
Contributor

When check() fails a error occurs. It seems to be fixed with this small change. Unit tests would be good ...

ReferenceError: defaults is not defined
at /Users/heideggermartin/IdeaProjects/mapslice/node_modules/yargs/index.js:339:46
at Array.forEach (native)
at Object.Argv.self.help (/Users/heideggermartin/IdeaProjects/mapslice/node_modules/yargs/index.js:302:14)
at Object.Argv.self.showHelp (/Users/heideggermartin/IdeaProjects/mapslice/node_modules/yargs/index.js:241:17)
at fail (/Users/heideggermartin/IdeaProjects/mapslice/node_modules/yargs/index.js:168:18)
at /Users/heideggermartin/IdeaProjects/mapslice/node_modules/yargs/index.js:420:17
at Array.forEach (native)
at parseArgs (/Users/heideggermartin/IdeaProjects/mapslice/node_modules/yargs/index.js:410:16)
at Object.Argv.Object.defineProperty.get as argv
at Object. (/Users/heideggermartin/IdeaProjects/mapslice/bin/mapslice:24:46)

When check() fails a error occurs. It seems to be fixed with this small change. Unit tests would be good ...

ReferenceError: defaults is not defined
    at /Users/heideggermartin/IdeaProjects/mapslice/node_modules/yargs/index.js:339:46
    at Array.forEach (native)
    at Object.Argv.self.help (/Users/heideggermartin/IdeaProjects/mapslice/node_modules/yargs/index.js:302:14)
    at Object.Argv.self.showHelp (/Users/heideggermartin/IdeaProjects/mapslice/node_modules/yargs/index.js:241:17)
    at fail (/Users/heideggermartin/IdeaProjects/mapslice/node_modules/yargs/index.js:168:18)
    at /Users/heideggermartin/IdeaProjects/mapslice/node_modules/yargs/index.js:420:17
    at Array.forEach (native)
    at parseArgs (/Users/heideggermartin/IdeaProjects/mapslice/node_modules/yargs/index.js:410:16)
    at Object.Argv.Object.defineProperty.get [as argv] (/Users/heideggermartin/IdeaProjects/mapslice/node_modules/yargs/index.js:368:36)
    at Object.<anonymous> (/Users/heideggermartin/IdeaProjects/mapslice/bin/mapslice:24:46)
@chevcast
Copy link

chevcast commented Dec 6, 2013

Sorry it took me a couple days. I was busy and saved the email notification then promptly forgot about it. Thank you for the fix.

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

Successfully merging this pull request may close these issues.

2 participants