summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/passes/ExtractFunction.cpp2
-rw-r--r--src/tools/optimization-options.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/passes/ExtractFunction.cpp b/src/passes/ExtractFunction.cpp
index 8942771fe..01daf3504 100644
--- a/src/passes/ExtractFunction.cpp
+++ b/src/passes/ExtractFunction.cpp
@@ -27,7 +27,7 @@ struct ExtractFunction : public Pass {
void run(PassRunner* runner, Module* module) override {
Name name = runner->options.getArgument(
"extract",
- "ExtractFunction usage: wasm-opt --pass-arg=extract:FUNCTION_NAME");
+ "ExtractFunction usage: wasm-opt --pass-arg=extract@FUNCTION_NAME");
std::cerr << "extracting " << name << "\n";
bool found = false;
for (auto& func : module->functions) {
diff --git a/src/tools/optimization-options.h b/src/tools/optimization-options.h
index 30f59f04d..6af247924 100644
--- a/src/tools/optimization-options.h
+++ b/src/tools/optimization-options.h
@@ -142,12 +142,12 @@ struct OptimizationOptions : public ToolOptions {
.add("--pass-arg",
"-pa",
"An argument passed along to optimization passes being run. Must be "
- "in the form KEY:VALUE",
+ "in the form KEY@VALUE",
Options::Arguments::N,
[this](Options*, const std::string& argument) {
- auto colon = argument.find(':');
+ auto colon = argument.find('@');
if (colon == std::string::npos) {
- Fatal() << "--pass-arg value must be in the form of KEY:VALUE";
+ Fatal() << "--pass-arg value must be in the form of KEY@VALUE";
}
auto key = argument.substr(0, colon);
auto value = argument.substr(colon + 1);