@@ -2471,7 +2471,8 @@ void DLOpen(const FunctionCallbackInfo<Value>& args) {
24712471 sizeof (errmsg),
24722472 " The module '%s'"
24732473 " \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." ,
24752476 *filename);
24762477 } else {
24772478 snprintf (errmsg,
@@ -3547,7 +3548,7 @@ static void PrintHelp() {
35473548 " --trace-deprecation show stack traces on deprecations\n "
35483549 " --throw-deprecation throw an exception on deprecations\n "
35493550 " --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 "
35513552 " --trace-warnings show stack traces on process warnings\n "
35523553 " --redirect-warnings=path\n "
35533554 " write warnings to path instead of\n "
@@ -3720,10 +3721,6 @@ static void ParseArgs(int* argc,
37203721 no_deprecation = true ;
37213722 } else if (strcmp (arg, " --napi-modules" ) == 0 ) {
37223723 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 ;
37273724 } else if (strcmp (arg, " --no-warnings" ) == 0 ) {
37283725 no_process_warnings = true ;
37293726 } else if (strcmp (arg, " --trace-warnings" ) == 0 ) {
0 commit comments