diff --git a/doc/api/process.md b/doc/api/process.md index d2394b21081..dc320f12de2 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -917,8 +917,8 @@ added: v0.1.27 The `process.argv` property returns an array containing the command-line arguments passed when the Node.js process was launched. The first element will be [`process.execPath`][]. See `process.argv0` if access to the original value -of `argv[0]` is needed. The second element will be the path to the JavaScript -file being executed. The remaining elements will be any additional command-line +of `argv[0]` is needed. If a [program entry point][] was provided, the second element +will be the absolute path to it. The remaining elements are additional command-line arguments. For example, assuming the following script for `process-args.js`: @@ -4631,6 +4631,7 @@ cases: [process.cpuUsage]: #processcpuusagepreviousvalue [process_emit_warning]: #processemitwarningwarning-type-code-ctor [process_warning]: #event-warning +[program entry point]: https://nodejs.org/api/cli.html#program-entry-point [report documentation]: report.md [terminal raw mode]: tty.md#readstreamsetrawmodemode [uv_get_available_memory]: https://docs.libuv.org/en/v1.x/misc.html#c.uv_get_available_memory