@@ -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,
@@ -3548,7 +3549,7 @@ static void PrintHelp() {
3548
3549
" --trace-deprecation show stack traces on deprecations\n "
3549
3550
" --throw-deprecation throw an exception on deprecations\n "
3550
3551
" --no-warnings silence all process warnings\n "
3551
- " --napi-modules[=yes|no] load N-API modules (default no) \n "
3552
+ " --napi-modules load N-API modules\n "
3552
3553
" --trace-warnings show stack traces on process warnings\n "
3553
3554
" --redirect-warnings=path\n "
3554
3555
" write warnings to path instead of\n "
@@ -3721,10 +3722,6 @@ static void ParseArgs(int* argc,
3721
3722
no_deprecation = true ;
3722
3723
} else if (strcmp (arg, " --napi-modules" ) == 0 ) {
3723
3724
load_napi_modules = true ;
3724
- } else if (strcmp (arg, " --napi-modules=yes" ) == 0 ) {
3725
- load_napi_modules = true ;
3726
- } else if (strcmp (arg, " --napi-modules=no" ) == 0 ) {
3727
- load_napi_modules = false ;
3728
3725
} else if (strcmp (arg, " --no-warnings" ) == 0 ) {
3729
3726
no_process_warnings = true ;
3730
3727
} else if (strcmp (arg, " --trace-warnings" ) == 0 ) {
0 commit comments