summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hutchins <eahutchins@gmail.com>2013-05-22 18:04:36 -0700
committerisaacs <i@izs.me>2013-08-19 15:53:09 -0700
commit31a27ca72d696db94705dafa2e4dba682979ef52 (patch)
tree52853c72328dc1d8244df42081c7e1ef2661e720
parent732f8b964152d4bff6033628c9b3904cf0ba554d (diff)
downloadnode-31a27ca72d696db94705dafa2e4dba682979ef52.tar.gz
Added documentation for process.execArgv
-rw-r--r--doc/api/process.markdown22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/api/process.markdown b/doc/api/process.markdown
index d128620e7..802f24722 100644
--- a/doc/api/process.markdown
+++ b/doc/api/process.markdown
@@ -167,6 +167,28 @@ Example:
/usr/local/bin/node
+## process.execArgv
+
+This is the set of node-specific command line options from the
+executable that started the process. These options do not show up in
+`process.argv`, and do not include the node executable, the name of
+the script, or any options following the script name. These options
+are useful in order to spawn child processes with the same execution
+environment as the parent.
+
+Example:
+
+ $ node --harmony script.js --version
+
+results in process.execArgv:
+
+ ['--harmony']
+
+and process.argv:
+
+ ['/usr/local/bin/node', 'script.js', '--version']
+
+
## process.abort()
This causes node to emit an abort. This will cause node to exit and