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 the value of $0 in the cli module. #352

Merged
merged 1 commit into from
Sep 12, 2015
Merged

Fix the value of $0 in the cli module. #352

merged 1 commit into from
Sep 12, 2015

Conversation

eventualbuddha
Copy link
Contributor

process.argv[0] is likely never going to equal exactly “node” since it should be the full path to the node binary running the program. Therefore we need to check that the basename is “node” and move on to argv[1] if that’s the case.

`process.argv[0]` is likely never going to equal exactly “node” since
it should be the full path to the node binary running the program.
Therefore we need to check that the basename is “node” and move on to
`argv[1]` if that’s the case.
@michaelficarra
Copy link
Owner

Nice! Thank you.

michaelficarra added a commit that referenced this pull request Sep 12, 2015
@michaelficarra michaelficarra merged commit a180874 into michaelficarra:master Sep 12, 2015
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

2 participants