Skip to content

Commit 1fcdc99

Browse files
authored
Merge pull request #356 from clubby789/all-args
Print all args properly in final report
2 parents 9197df0 + a21174e commit 1fcdc99

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -695,10 +695,11 @@ fn print_final_report(
695695
eprintln!("Reproduce with:");
696696
eprintln!("```bash");
697697
eprint!("cargo bisect-rustc ");
698-
for (index, arg) in env::args_os().enumerate() {
699-
if index > 1 {
700-
eprint!("{} ", arg.to_string_lossy());
701-
}
698+
for arg in env::args_os()
699+
.map(|arg| arg.to_string_lossy().into_owned())
700+
.skip_while(|arg| arg.ends_with("bisect-rustc"))
701+
{
702+
eprint!("{arg} ");
702703
}
703704
eprintln!();
704705
eprintln!("```");

0 commit comments

Comments
 (0)