Skip to content

Commit

Permalink
module: partial doc removal of --experimental-modules
Browse files Browse the repository at this point in the history
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: nodejs/modules#502

PR-URL: #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>
  • Loading branch information
MylesBorins authored and targos committed May 13, 2020
1 parent 5df8ab1 commit a1fa180
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions doc/node.1
Expand Up @@ -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.
.
Expand Down
2 changes: 1 addition & 1 deletion src/node_options.cc
Expand Up @@ -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",
Expand Down

0 comments on commit a1fa180

Please sign in to comment.