diff options
Diffstat (limited to 'src/tools/wasm-dis.cpp')
-rw-r--r-- | src/tools/wasm-dis.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/wasm-dis.cpp b/src/tools/wasm-dis.cpp index cca87514a..b4003b2c8 100644 --- a/src/tools/wasm-dis.cpp +++ b/src/tools/wasm-dis.cpp @@ -29,6 +29,9 @@ using namespace wasm; int main(int argc, const char* argv[]) { std::string sourceMapFilename; + + const std::string WasmDisOption = "wasm-dis options"; + ToolOptions options("wasm-dis", "Un-assemble a .wasm (WebAssembly binary format) into a " ".wat (WebAssembly text format)"); @@ -36,6 +39,7 @@ int main(int argc, const char* argv[]) { .add("--output", "-o", "Output file (stdout if not specified)", + WasmDisOption, Options::Arguments::One, [](Options* o, const std::string& argument) { o->extra["output"] = argument; @@ -45,6 +49,7 @@ int main(int argc, const char* argv[]) { "--source-map", "-sm", "Consume source map from the specified file to add location information", + WasmDisOption, Options::Arguments::One, [&sourceMapFilename](Options* o, const std::string& argument) { sourceMapFilename = argument; |