summaryrefslogtreecommitdiff
path: root/src/node_options.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_options.cc')
-rw-r--r--src/node_options.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/node_options.cc b/src/node_options.cc
index cb490dad75..d9c0d472fb 100644
--- a/src/node_options.cc
+++ b/src/node_options.cc
@@ -109,11 +109,11 @@ void EnvironmentOptions::CheckOptions(std::vector<std::string>* errors) {
if (!module_type.empty()) {
if (!experimental_modules) {
- errors->push_back("--entry-type requires "
+ errors->push_back("--input-type requires "
"--experimental-modules to be enabled");
}
if (module_type != "commonjs" && module_type != "module") {
- errors->push_back("--entry-type must be \"module\" or \"commonjs\"");
+ errors->push_back("--input-type must be \"module\" or \"commonjs\"");
}
}
@@ -289,15 +289,15 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
"(default: llhttp).",
&EnvironmentOptions::http_parser,
kAllowedInEnvironment);
+ AddOption("--input-type",
+ "set module type for string input",
+ &EnvironmentOptions::module_type,
+ kAllowedInEnvironment);
AddOption("--loader",
"(with --experimental-modules) use the specified file as a "
"custom loader",
&EnvironmentOptions::userland_loader,
kAllowedInEnvironment);
- AddOption("--entry-type",
- "set module type name of the entry point",
- &EnvironmentOptions::module_type,
- kAllowedInEnvironment);
AddOption("--es-module-specifier-resolution",
"Select extension resolution algorithm for es modules; "
"either 'explicit' (default) or 'node'",