Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a6cb3a5

Browse filesBrowse files
committed
doc: update environment vars in manpage and --help
- Added NODE_REPL_HISTORY to the environment variables in the --help and made all descriptions start with lower case for consistency. - Added NODE_REPL_HISTORY and NODE_ICU_DATA to the man page. PR-URL: #2690 Reviewed-By: fishrock123 - Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: evanlucas - Evan Lucas <evanlucas@me.com>
1 parent 3a731da commit a6cb3a5
Copy full SHA for a6cb3a5

File tree

Expand file treeCollapse file tree

2 files changed

+11
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+11
-4
lines changed
Open diff view settings
Collapse file

‎doc/node.1‎

Copy file name to clipboardExpand all lines: doc/node.1
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,15 @@ and servers.
7272

7373
.IP NODE_PATH
7474
\':\'\-separated list of directories prefixed to the module search path.
75-
7675
.IP NODE_DISABLE_COLORS
7776
If set to 1 then colors will not be used in the REPL.
77+
.IP NODE_ICU_DATA
78+
Data path for ICU (Intl object) data. Will extend linked-in data when compiled
79+
with small-icu support.
80+
.IP NODE_REPL_HISTORY
81+
Path to the file used to store the persistent REPL history. The default path
82+
is ~/.node_repl_history, which is overridden by this variable. Setting the
83+
value to an empty string ("") disables persistent REPL history.
7884

7985
.SH V8 OPTIONS
8086

Collapse file

‎src/node.cc‎

Copy file name to clipboardExpand all lines: src/node.cc
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3066,7 +3066,7 @@ static void PrintHelp() {
30663066
" --icu-data-dir=dir set ICU data load path to dir\n"
30673067
" (overrides NODE_ICU_DATA)\n"
30683068
#if !defined(NODE_HAVE_SMALL_ICU)
3069-
" Note: linked-in ICU data is\n"
3069+
" note: linked-in ICU data is\n"
30703070
" present.\n"
30713071
#endif
30723072
#endif
@@ -3078,13 +3078,14 @@ static void PrintHelp() {
30783078
"NODE_PATH ':'-separated list of directories\n"
30793079
#endif
30803080
" prefixed to the module search path.\n"
3081-
"NODE_DISABLE_COLORS Set to 1 to disable colors in the REPL\n"
3081+
"NODE_DISABLE_COLORS set to 1 to disable colors in the REPL\n"
30823082
#if defined(NODE_HAVE_I18N_SUPPORT)
3083-
"NODE_ICU_DATA Data path for ICU (Intl object) data\n"
3083+
"NODE_ICU_DATA data path for ICU (Intl object) data\n"
30843084
#if !defined(NODE_HAVE_SMALL_ICU)
30853085
" (will extend linked-in data)\n"
30863086
#endif
30873087
#endif
3088+
"NODE_REPL_HISTORY path to the persistent REPL history file\n"
30883089
"\n"
30893090
"Documentation can be found at https://nodejs.org/\n");
30903091
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.