Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: indent long help text properly #37911

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/internal/main/print_help.js
Expand Up @@ -152,8 +152,8 @@ function format(
else
text += StringPrototypeRepeat(' ', firstColumn - displayName.length);

text += indent(StringPrototypeTrimLeft(fold(displayHelpText, secondColumn),
firstColumn)) + '\n';
text += StringPrototypeTrimLeft(
indent(fold(displayHelpText, secondColumn), firstColumn)) + '\n';
addaleax marked this conversation as resolved.
Show resolved Hide resolved
}

if (maxFirstColumnUsed < firstColumn - 4) {
Expand Down
2 changes: 1 addition & 1 deletion src/node_options.cc
Expand Up @@ -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,
Expand Down