Skip to content

Commit dec42b5

Browse files
devsnektargos
authored andcommitted
cli: fix flags on help output
PR-URL: #22271 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
1 parent 7972298 commit dec42b5

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/node.cc

-8
Original file line numberDiff line numberDiff line change
@@ -2592,16 +2592,12 @@ static void PrintHelp() {
25922592
#if HAVE_OPENSSL && NODE_FIPS_MODE
25932593
" --enable-fips enable FIPS crypto at startup\n"
25942594
#endif // NODE_FIPS_MODE && NODE_FIPS_MODE
2595-
#if defined(NODE_HAVE_I18N_SUPPORT)
25962595
" --experimental-modules experimental ES Module support\n"
25972596
" and caching modules\n"
2598-
#endif // defined(NODE_HAVE_I18N_SUPPORT)
25992597
" --experimental-repl-await experimental await keyword support\n"
26002598
" in REPL\n"
2601-
#if defined(NODE_HAVE_I18N_SUPPORT)
26022599
" --experimental-vm-modules experimental ES Module support\n"
26032600
" in vm module\n"
2604-
#endif // defined(NODE_HAVE_I18N_SUPPORT)
26052601
" --experimental-worker experimental threaded Worker support\n"
26062602
#if HAVE_OPENSSL && NODE_FIPS_MODE
26072603
" --force-fips force FIPS crypto (cannot be disabled)\n"
@@ -2634,11 +2630,9 @@ static void PrintHelp() {
26342630
" OPENSSL_CONF)\n"
26352631
#endif // HAVE_OPENSSL
26362632
" --pending-deprecation emit pending deprecation warnings\n"
2637-
#if defined(NODE_HAVE_I18N_SUPPORT)
26382633
" --preserve-symlinks preserve symbolic links when resolving\n"
26392634
" --preserve-symlinks-main preserve symbolic links when resolving\n"
26402635
" the main module\n"
2641-
#endif
26422636
" --prof generate V8 profiler output\n"
26432637
" --prof-process process V8 profiler output generated\n"
26442638
" using --prof\n"
@@ -2719,10 +2713,8 @@ static void PrintHelp() {
27192713
" prefixed to the module search path\n"
27202714
"NODE_PENDING_DEPRECATION set to 1 to emit pending deprecation\n"
27212715
" warnings\n"
2722-
#if defined(NODE_HAVE_I18N_SUPPORT)
27232716
"NODE_PRESERVE_SYMLINKS set to 1 to preserve symbolic links\n"
27242717
" when resolving and caching modules\n"
2725-
#endif
27262718
"NODE_REDIRECT_WARNINGS write warnings to path instead of\n"
27272719
" stderr\n"
27282720
"NODE_REPL_HISTORY path to the persistent REPL history\n"

test/parallel/test-cli-node-print-help.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ function validateNodePrintHelp() {
3232
{ compileConstant: NODE_FIPS_MODE,
3333
flags: [ '--enable-fips', '--force-fips' ] },
3434
{ compileConstant: NODE_HAVE_I18N_SUPPORT,
35-
flags: [ '--experimental-modules', '--experimental-vm-modules',
36-
'--icu-data-dir=dir', '--preserve-symlinks',
37-
'NODE_ICU_DATA', 'NODE_PRESERVE_SYMLINKS' ] },
35+
flags: [ '--icu-data-dir=dir', 'NODE_ICU_DATA' ] },
3836
{ compileConstant: HAVE_INSPECTOR,
3937
flags: [ '--inspect-brk[=[host:]port]', '--inspect-port=[host:]port',
4038
'--inspect[=[host:]port]' ] },

0 commit comments

Comments
 (0)