-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
cannot resolve main script if -r options specified, flag with value specified and main script file path contains only file name. #1691
Comments
Thank you for report. |
@iojs/tc Think we can make the command line parser more complete, or is there an existing one we can we can throw into |
@trevnorris It depends on what you need but in my own projects I frequently reuse getopt.c or getopt_long.c from the FreeBSD source tree. They build out-of-tree with only minor tweaks. |
@bnoordhuis Small and easy to include. I'd say we just use one of those for our arguments parsing instead. |
+1 @bnoordhuis's suggestions if they look good, our options parsing is horrible. Here's another options-related issue of which a fix could also benefit: #1197 |
Fixed in 0a461e5 - will be in the imminent 2.0.2 |
Fixes: nodejs#1691 PR-URL: nodejs#1694 Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Fixes: nodejs/node#1691 PR-URL: nodejs/node#1694 Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Works correctly, if "--expose_debug_as=v8debug " is not specified.
Test project (files file.js and p.js) — https://dl.dropboxusercontent.com/u/43511007/s/test.zip
The text was updated successfully, but these errors were encountered: