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

fix: stop applying parser to context object #675

Merged
merged 1 commit into from Oct 16, 2016
Merged

fix: stop applying parser to context object #675

merged 1 commit into from Oct 16, 2016

Conversation

bcoe
Copy link
Member

@bcoe bcoe commented Oct 16, 2016

We were applying yargs' parser to the context object (finding aliases, etc.). Unfortunately, folks often want to pass in objects with cyclical relationships to the parser, e.g., http.request which makes the parser blow up quite spectacularly.

We now carve out an exception for the parse() context object, such that it doesn't run through yargs' parser.

@ceejbot @zkat

@bcoe
Copy link
Member Author

bcoe commented Oct 16, 2016

fixes #671

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.

None yet

1 participant