Skip to content

Commit

Permalink
Merge pull request #356 from clubby789/all-args
Browse files Browse the repository at this point in the history
Print all args properly in final report
  • Loading branch information
ehuss authored Nov 12, 2024
2 parents 9197df0 + a21174e commit 1fcdc99
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,10 +695,11 @@ fn print_final_report(
eprintln!("Reproduce with:");
eprintln!("```bash");
eprint!("cargo bisect-rustc ");
for (index, arg) in env::args_os().enumerate() {
if index > 1 {
eprint!("{} ", arg.to_string_lossy());
}
for arg in env::args_os()
.map(|arg| arg.to_string_lossy().into_owned())
.skip_while(|arg| arg.ends_with("bisect-rustc"))
{
eprint!("{arg} ");
}
eprintln!();
eprintln!("```");
Expand Down

0 comments on commit 1fcdc99

Please sign in to comment.