node/lib/internal/main
David Glasser b6ad8e4cc1
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>
2021-03-29 20:17:20 -04:00
..
.eslintrc.yaml
check_syntax.js module: loader getSource, getFormat, transform hooks 2020-01-07 01:31:05 +02:00
eval_stdin.js lib: use getOptionValue instead of process underscore aliases 2019-04-20 00:20:37 +08:00
eval_string.js lib: use getOptionValue instead of process underscore aliases 2019-04-20 00:20:37 +08:00
inspect.js src: remove deprecated node debug command 2020-06-01 08:29:28 -07:00
print_help.js src: indent long help text properly 2021-03-29 20:17:20 -04:00
prof_process.js process: call prepareMainThreadExecution in all main thread scripts 2019-03-08 13:57:36 +01:00
repl.js repl: support --loader option in builtin REPL 2020-07-14 15:21:26 +02:00
run_main_module.js module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
worker_thread.js worker: add setEnvironmentData/getEnvironmentData 2021-03-16 12:31:47 -04:00