Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Glasser <glasser@davidglasser.net>2021-03-25 17:46:28 +0300
committerAntoine du Hamel <duhamelantoine1995@gmail.com>2021-03-28 20:28:00 +0300
commit19ed27d61fd74d8d6568ae4a9944151a5e0c9e6e (patch)
tree26e10b46ef54ca91536fef58b5b803ad6585c1b0 /src/node_options.cc
parentce6d756298ace3f1fddf8980e1a0e6de3c01faef (diff)
src: indent long help text properly
The previous code passed an ignored argument to StringPrototypeTrimLeft, and tried to trim a string that didn't start with whitespace. The trim makes more sense after the indentation has been added. Now wrapped lines actually show up with the rest of the help text. Doing this made an uncharacteristic trailing newline in the `--icu-data-dir` help text more obvious, so I removed that. PR-URL: https://github.com/nodejs/node/pull/37911 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_options.cc')
-rw-r--r--src/node_options.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_options.cc b/src/node_options.cc
index a0bbb1681cc..d5c26006887 100644
--- a/src/node_options.cc
+++ b/src/node_options.cc
@@ -729,7 +729,7 @@ PerProcessOptionsParser::PerProcessOptionsParser(
AddOption("--icu-data-dir",
"set ICU data load path to dir (overrides NODE_ICU_DATA)"
#ifndef NODE_HAVE_SMALL_ICU
- " (note: linked-in ICU data is present)\n"
+ " (note: linked-in ICU data is present)"
#endif
,
&PerProcessOptions::icu_data_dir,