diff --git a/doc/api/process.md b/doc/api/process.md index a48879338b6015..e9d9ac543e1584 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -834,8 +834,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`: @@ -4594,6 +4594,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