Skip to content

Commit

Permalink
Update miri-script/src/main.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <[email protected]>
  • Loading branch information
Mandragorian and RalfJung committed Dec 14, 2024
1 parent 8f27ab3 commit 147bbd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions miri-script/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ pub struct Cli {
}

fn main() -> Result<()> {
/// Split the arguments into the part before the `--` and the part after.
/// The `--` itself ends up in the second part.
let miri_args: Vec<_> = std::env::args().take_while(|x| *x != "--").collect();
let remainder: Vec<_> = std::env::args().skip_while(|x| *x != "--").collect();

Expand Down

0 comments on commit 147bbd0

Please sign in to comment.