@@ -2471,7 +2471,8 @@ void DLOpen(const FunctionCallbackInfo<Value>& args) {
2471
2471
sizeof (errmsg),
2472
2472
" The module '%s'"
2473
2473
" \n was compiled against the Node.js API. This feature is "
2474
- " \n experimental and must be enabled on the command-line." ,
2474
+ " \n experimental and must be enabled on the command-line by "
2475
+ " \n adding --napi-modules." ,
2475
2476
*filename);
2476
2477
} else {
2477
2478
snprintf (errmsg,
@@ -3547,7 +3548,7 @@ static void PrintHelp() {
3547
3548
" --trace-deprecation show stack traces on deprecations\n "
3548
3549
" --throw-deprecation throw an exception on deprecations\n "
3549
3550
" --no-warnings silence all process warnings\n "
3550
- " --napi-modules[=yes|no] load N-API modules (default no) \n "
3551
+ " --napi-modules load N-API modules\n "
3551
3552
" --trace-warnings show stack traces on process warnings\n "
3552
3553
" --redirect-warnings=path\n "
3553
3554
" write warnings to path instead of\n "
@@ -3720,10 +3721,6 @@ static void ParseArgs(int* argc,
3720
3721
no_deprecation = true ;
3721
3722
} else if (strcmp (arg, " --napi-modules" ) == 0 ) {
3722
3723
load_napi_modules = true ;
3723
- } else if (strcmp (arg, " --napi-modules=yes" ) == 0 ) {
3724
- load_napi_modules = true ;
3725
- } else if (strcmp (arg, " --napi-modules=no" ) == 0 ) {
3726
- load_napi_modules = false ;
3727
3724
} else if (strcmp (arg, " --no-warnings" ) == 0 ) {
3728
3725
no_process_warnings = true ;
3729
3726
} else if (strcmp (arg, " --trace-warnings" ) == 0 ) {
0 commit comments