-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
Fix documentation of process.argv[0] #7449
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
Changes from 1 commit
7e8ab82
1b1e5f6
e620fa0
7b0096e
4cd4026
9afa7fd
69456e4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
With this commit everyline of process documentation is wrapped in 80 characters and there are some changes for documention of process.arv[0] and process.argv[1]
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -450,11 +450,11 @@ console.log(`This processor architecture is ${process.arch}`); | |
| added: v0.1.27 | ||
| --> | ||
|
|
||
| The `process.argv` property returns a array containing the command line | ||
| arguments passed when the Node.js process was launched. | ||
| The first element will be [`process.execPath()`], | ||
| The second element will be the path to the JavaScript file being executed. | ||
| The remaining elements will be any additional command line arguments. | ||
| The `process.argv` property returns a array containing the command line | ||
| arguments passed when the Node.js process was launched.The first element will | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Space after the period.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @cjihrig Now it LGTM. 🍭 |
||
| be [`process.execPath()`]. The second element will be the path to the | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done 👍 |
||
| JavaScript file being executed. The remaining elements will be any additional | ||
| command line arguments. | ||
|
|
||
| For example, assuming the following script for `process-args.js`: | ||
|
|
||
|
|
||
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.
a -> an