Skip to content

Commit

Permalink
Properly shell quote flags in test output
Browse files Browse the repository at this point in the history
  • Loading branch information
tmfink authored and emilio committed Jun 29, 2020
1 parent 394648a commit d8968fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ mod test {

let flags_quoted: Vec<String> = command_line_flags
.iter()
.map(|x| format!("'{}'", x))
.map(|x| format!("{}", shlex::quote(x)))
.collect();
let flags_str = flags_quoted.join(" ");
println!("{}", flags_str);
Expand Down

0 comments on commit d8968fb

Please sign in to comment.