diff options
author | Myles Borins <mylesborins@google.com> | 2020-04-18 11:27:54 -0400 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2020-04-28 13:15:04 +0200 |
commit | 4432bb24150989b4c4e0e9010cab2abce63acb80 (patch) | |
tree | 8c85abb0e3d5b4392c7a1962f6ad46b957768b8d | |
parent | 8c48d166914f832cda82d2017852d3619e40dc99 (diff) | |
download | node-new-4432bb24150989b4c4e0e9010cab2abce63acb80.tar.gz |
module: partial doc removal of --experimental-modules
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 <guybedford@gmail.com>
Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r-- | doc/node.1 | 3 | ||||
-rw-r--r-- | src/node_options.cc | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/doc/node.1 b/doc/node.1 index 9bb344fdf2..ec2642170a 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 4148cfc04e..3b9142c19e 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -285,7 +285,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { kAllowedInEnvironment); AddAlias("--loader", "--experimental-loader"); AddOption("--experimental-modules", - "experimental modules features", + "", &EnvironmentOptions::experimental_modules, kAllowedInEnvironment); AddOption("--experimental-wasm-modules", |