summaryrefslogtreecommitdiff
path: root/src/tools/wasm-shell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wasm-shell.cpp')
-rw-r--r--src/tools/wasm-shell.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/wasm-shell.cpp b/src/tools/wasm-shell.cpp
index 9b8e7ff28..6a780dd9e 100644
--- a/src/tools/wasm-shell.cpp
+++ b/src/tools/wasm-shell.cpp
@@ -47,17 +47,21 @@ struct ShellOptions : public Options {
Name entry;
std::set<size_t> skipped;
+ const std::string WasmShellOption = "wasm-shell options";
+
ShellOptions(const std::string& command, const std::string& description)
: Options(command, description) {
(*this)
.add("--entry",
"-e",
"Call the entry point after parsing the module",
+ WasmShellOption,
Options::Arguments::One,
[this](Options*, const std::string& argument) { entry = argument; })
.add("--skip",
"-s",
"Skip input on certain lines (comma-separated-list)",
+ WasmShellOption,
Options::Arguments::One,
[this](Options*, const std::string& argument) {
size_t i = 0;