summaryrefslogtreecommitdiff
path: root/test/run-wasmdump.py
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-01-20 09:57:47 -0800
committerGitHub <noreply@github.com>2017-01-20 09:57:47 -0800
commit86d121eb85f4e75fb0207bd5a13891e3d4de7ee9 (patch)
tree7bdc04092659b79d66393ef864802d4d63673f4b /test/run-wasmdump.py
parentaa49b05e65ebff47fb89c100f2e4e48f080c48a9 (diff)
downloadwabt-86d121eb85f4e75fb0207bd5a13891e3d4de7ee9.tar.gz
wabt-86d121eb85f4e75fb0207bd5a13891e3d4de7ee9.tar.bz2
wabt-86d121eb85f4e75fb0207bd5a13891e3d4de7ee9.zip
Improve wasmdump command line options (#284)
* Improve wasmdump command line options These changes make wasmdump more closely match objdump. Change -v/--verbose to -x/--details. Change -r/--raw to -s/--full-contents. Error out unless on of -x/-d/-r/-h is specified. Previously wasmdump would simply print nothing at all which was confusing.
Diffstat (limited to 'test/run-wasmdump.py')
-rwxr-xr-xtest/run-wasmdump.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run-wasmdump.py b/test/run-wasmdump.py
index 29a65cd7..8b254632 100755
--- a/test/run-wasmdump.py
+++ b/test/run-wasmdump.py
@@ -69,7 +69,7 @@ def main(args):
error_cmdline=options.error_cmdline)
wasmdump.AppendOptionalArgs({
'-h': options.headers,
- '-v': options.dump_verbose,
+ '-x': options.dump_verbose,
})
wast2wasm.verbose = options.print_cmd