Skip to content

Commit 283e0f1

Browse files
committed
don't add -- if remainder is empty
1 parent 80da469 commit 283e0f1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

miri-script/src/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,10 @@ impl Command {
131131
| Self::Clippy { flags }
132132
| Self::Run { flags, .. }
133133
| Self::Test { flags, .. } => {
134-
flags.push("--".into());
135-
flags.extend(remainder);
134+
if !remainder.is_empty() {
135+
flags.push("--".into());
136+
flags.extend(remainder);
137+
}
136138
}
137139
_ => (),
138140
}
@@ -216,6 +218,7 @@ fn main() -> Result<()> {
216218
let args = Cli::parse_from(miri_args);
217219
let mut command = args.command;
218220
command.add_remainder(remainder);
221+
dbg!(&command);
219222
command.exec()?;
220223
Ok(())
221224
}

0 commit comments

Comments
 (0)