File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -835,8 +835,10 @@ The `process.argv` property returns an array containing the command-line
835835arguments passed when the Node.js process was launched. The first element will
836836be [ ` process.execPath ` ] [ ] . See ` process.argv0 ` if access to the original value
837837of ` argv[0] ` is needed. The second element will be the path to the JavaScript
838- file being executed. The remaining elements will be any additional command-line
839- arguments.
838+ file being executed, if a script file is provided. For no-script execution
839+ modes such as ` -e ` or ` --eval ` , the second element is the first unconsumed
840+ command-line argument. The remaining elements will be any additional
841+ command-line arguments.
840842
841843For example, assuming the following script for ` process-args.js ` :
842844
You can’t perform that action at this time.
0 commit comments