-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
doc: describe NODE_OPTIONS interop w/cmd line opts #28928
Conversation
doc/api/cli.md
Outdated
NODE_OPTIONS='--require "./my path/file.js"' | ||
``` | ||
|
||
A singleton flag passed as a command line option will *override* the same flag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional nit: No need for emphasis?
A singleton flag passed as a command line option will *override* the same flag | |
A singleton flag passed as a command line option will override the same flag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the emphasis, but left singleton in -- happy to follow what you think on that, I think that it can work either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I changed my mind and decided singleton
was fine. If there's a better word, it can always be updated in a subsequent PR.
9e22ee2
to
6ae4a8f
Compare
6ae4a8f
to
135407e
Compare
Landed in 5eaef7b |
Fixes nodejs#28910 PR-URL: nodejs#28928 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Checklist
make lint
passesDisambiguates the description of NODE_OPTIONS wrt how it is overrides/compounded by command line options. Adds examples of singleton and multi flags.
Fixes #28910