diff options
author | Myles Borins <mylesborins@google.com> | 2020-04-18 11:27:54 -0400 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2020-04-21 16:13:11 -0400 |
commit | 46ec9ab7d81f7dac59b2bf9afb67896564b4f586 (patch) | |
tree | f3a3c1b6144c5f38057374dcf3e477c2cd25bb4f | |
parent | 438514d36aa899ee62e760c401564b1ce9314391 (diff) | |
download | node-new-46ec9ab7d81f7dac59b2bf9afb67896564b4f586.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", |