diff options
author | John Barboza <jbarboza@ca.ibm.com> | 2016-12-30 00:28:38 -0500 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2017-01-25 00:24:40 +0100 |
commit | 0a9f360c98e4864327888a5030d55f7b2cdcc6d9 (patch) | |
tree | 2d2e288746c9e58a3e91def6fffa85afcda9d3a2 /doc/node.1 | |
parent | 5ea98fb17d45195079865a3b3c78a48fe79258c7 (diff) | |
download | android-node-v8-0a9f360c98e4864327888a5030d55f7b2cdcc6d9.tar.gz android-node-v8-0a9f360c98e4864327888a5030d55f7b2cdcc6d9.tar.bz2 android-node-v8-0a9f360c98e4864327888a5030d55f7b2cdcc6d9.zip |
src: support "--" after "-e" as end-of-options
When the double dash "--" appears after "-e <script>" on the
command line, it indicates the end of options and the beginning
of positional parameters for the script.
PR-URL: https://github.com/nodejs/node/pull/10651
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc/node.1')
-rw-r--r-- | doc/node.1 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/node.1 b/doc/node.1 index 3dec077f52..a79cbcaef6 100644 --- a/doc/node.1 +++ b/doc/node.1 @@ -37,6 +37,7 @@ node \- Server-side JavaScript runtime .RI [ script.js \ | .B -e .RI \&" script \&"] +.B [--] .RI [ arguments ] .br .B node debug @@ -200,6 +201,13 @@ See \fBSSL_CERT_DIR\fR and \fBSSL_CERT_FILE\fR. .BR \-\-icu\-data\-dir =\fIfile\fR Specify ICU data load path. (overrides \fBNODE_ICU_DATA\fR) +.TP +.BR \-\-\fR +Indicate the end of node options. Pass the rest of the arguments to the script. + +If no script filename or eval/print script is supplied prior to this, then +the next argument will be used as a script filename. + .SH ENVIRONMENT VARIABLES .TP |