From a1fa1800798c748344db6888860461204cd5897c Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Sat, 18 Apr 2020 11:27:54 -0400 Subject: [PATCH] module: partial doc removal of --experimental-modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This removes `--experimental-modules` from showing up in `node -h` and also removes the documentation from the man pages. It will still work as a no-op, and is still included in cli.md Refs: https://github.com/nodejs/modules/issues/502 PR-URL: https://github.com/nodejs/node/pull/32915 Reviewed-By: Guy Bedford Reviewed-By: Geoffrey Booth Reviewed-By: David Carlier Reviewed-By: Michaƫl Zasso Reviewed-By: Franziska Hinkelmann Reviewed-By: James M Snell --- doc/node.1 | 3 --- src/node_options.cc | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/doc/node.1 b/doc/node.1 index 3f992e131f7991..be92e7319ed94e 100644 --- a/doc/node.1 +++ b/doc/node.1 @@ -132,9 +132,6 @@ Specify the .Ar module to use as a custom module loader. . -.It Fl -experimental-modules -Enable experimental latest experimental modules features. -. .It Fl -experimental-policy Use the specified file as a security policy. . diff --git a/src/node_options.cc b/src/node_options.cc index fab1f8899ef91f..8b3a161c2d2f83 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -289,7 +289,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { kAllowedInEnvironment); AddAlias("--loader", "--experimental-loader"); AddOption("--experimental-modules", - "experimental modules features", + "", &EnvironmentOptions::experimental_modules, kAllowedInEnvironment); AddOption("--experimental-wasm-modules",