Commit 772a6e38 authored by nagayama15's avatar nagayama15

Output result

parent ecc5555d
......@@ -7,10 +7,10 @@
int main(int argc, char *argv[]) {
try {
if (argc != 3) {
if (argc != 4) {
fmt::print(std::cerr,
"WebAssembly digital watermarker.\n"
"usage: kyut <input file> <watermark>\n");
"usage: kyut <input file> <watermark> <output file>\n");
return 1;
}
......@@ -19,6 +19,8 @@ int main(int argc, char *argv[]) {
wasm::ModuleReader{}.read(argv[1], module);
kyut::pass::embedWatermarkOperandSwapping(module);
wasm::ModuleWriter{}.writeText(module, argv[3]);
} catch (wasm::ParseException &e) {
fmt::print(std::cerr, "parse error\n");
e.dump(std::cerr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment