Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changes as suggested by @mscdex & @cjihrig
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
tarungarg546 committed Jun 29, 2016
commit 7b0096ec082e726d9e8ea173e7df3f033af86760
5 changes: 3 additions & 2 deletions doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,9 @@ 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()`], second element will be the path to JavaScript file.
arguments passed when the Node.js process was launched.
The first element will be [`process.execPath()`],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to split all of these across lines. Just wrap them at 80 characters. Also, the sentence should end with a period, not a comma.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

The second element will be the path to the JavaScript file being executed.
The remaining elements will be any additional command line arguments.

For example, assuming the following script for `process-args.js`:
Expand Down