summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 2b17e54de..e26ac846c 100644
--- a/README.md
+++ b/README.md
@@ -55,13 +55,13 @@ bin/binaryen-shell [.wast file] [options] [passes, see --help] [--help]
The binaryen shell receives a .wast file as input, and can run transformation passes on it, as well as print it (before and/or after the transformations). For example, try
````
-bin/binaryen-shell test/if_else.wast -print-before
+bin/binaryen-shell test/if_else.wast --print-before
````
That will pretty-print out one of the testcases in the test suite. To run a transformation pass on it, try
````
-bin/binaryen-shell test/if_else.wast -print-before -print-after -lower-if-else
+bin/binaryen-shell test/if_else.wast --print-before --print-after --lower-if-else
````
The `lower-if-else` pass lowers if-else into a block and a break. You can see the change the transformation causes by comparing the print before versus after.