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

Argument parsing is still broken in 6.7.0 (-r works but --require doesn't) #258

Closed
SystemParadox opened this issue Apr 29, 2021 · 2 comments · Fixed by #262
Closed

Argument parsing is still broken in 6.7.0 (-r works but --require doesn't) #258

SystemParadox opened this issue Apr 29, 2021 · 2 comments · Fixed by #262

Comments

@SystemParadox
Copy link

SystemParadox commented Apr 29, 2021

Probably a continuation of #236.

In 5.2.0:

node-dev --no-notify --require source-map-support/register lib/server/index.js
// Correct source-mapped line numbers

In 6.7.0:

node-dev --no-notify --require source-map-support/register lib/server/index.js
// Wrong line numbers
node-dev --no-notify -r source-map-support/register lib/server/index.js
// Correct source-mapped line numbers
@bjornstar
Copy link
Collaborator

Your title says --require is broken and -r works.

However, your text here reads like --require works but -r is broken.

I'll take a look at it, but I'd like to understand which one is actually broken.

@SystemParadox
Copy link
Author

SystemParadox commented Apr 29, 2021

Sorry I mixed up the comments. The title is correct: -r works but --require is broken. I have fixed the text.

It looks like -r was fixed in #236, but not --require for some reason.

Thanks!

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 a pull request may close this issue.

2 participants