Skip to content

Commit 8663fd5

Browse files
MylesBorinsBethGriggs
authored andcommitted
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: 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>
1 parent f6be140 commit 8663fd5

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

doc/node.1

-3
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ Specify the
132132
.Ar module
133133
to use as a custom module loader.
134134
.
135-
.It Fl -experimental-modules
136-
Enable experimental latest experimental modules features.
137-
.
138135
.It Fl -experimental-policy
139136
Use the specified file as a security policy.
140137
.

src/node_options.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
285285
kAllowedInEnvironment);
286286
AddAlias("--loader", "--experimental-loader");
287287
AddOption("--experimental-modules",
288-
"experimental modules features",
288+
"",
289289
&EnvironmentOptions::experimental_modules,
290290
kAllowedInEnvironment);
291291
AddOption("--experimental-wasm-modules",

0 commit comments

Comments
 (0)