Skip to content

Commit d496dec

Browse files
silverwindrvagg
authored andcommitted
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 <[email protected]> Reviewed-By: evanlucas - Evan Lucas <[email protected]>
1 parent a74ae76 commit d496dec

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

doc/node.1

+7-1
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

src/node.cc

+4-3
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)