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

remove --nodejs option #182

Merged
merged 1 commit into from
Feb 17, 2024
Merged

remove --nodejs option #182

merged 1 commit into from
Feb 17, 2024

Conversation

davidchambers
Copy link
Owner

This pull request changes the way users can provide flags and options to node.

Before:

$ doctest --nodejs '--experimental-shadow-realm --no-warnings' --module esm -- index.js

After:

$ node --experimental-shadow-realm --no-warnings -- doctest --module esm -- index.js

--nodejs can be traced back to 2010, when @jashkenas added the option to CoffeeScript's command-line interface: jashkenas/coffeescript@bc4498e. This may have been the best option available at the time; 13 years later we can use process.execArgv to provide the same functionality without a special option.

@davidchambers davidchambers merged commit b6d1bcb into main Feb 17, 2024
6 checks passed
@davidchambers davidchambers deleted the node-options branch February 17, 2024 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants