Skip to content

Commit 866aeae

Browse files
committed
explain arument passing in the docs
1 parent 35ed590 commit 866aeae

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ Now you can run your project in Miri:
4848
3. If you have a binary project, you can run it through Miri using `cargo
4949
+nightly miri run`.
5050

51+
You can pass arguments to Miri after the first `--`, and pass arguments to the
52+
interpreted program or test suite after the second `--`. For example, `cargo
53+
+nightly miri run -- -Zmiri-disable-validation` runs the program without
54+
validation of basic type invariants and references. `cargo +nightly miri test
55+
-- -- filter` passes `filter` to the test suite the same way `cargo test filter`
56+
would.
57+
5158
When running code via `cargo miri`, the `miri` config flag is set. You can
5259
use this to exclude test cases that will fail under Miri because they do things
5360
Miri does not support:

0 commit comments

Comments
 (0)