Skip to content

Commit

Permalink
Fix --output option
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh1Yo committed Jan 23, 2022
1 parent 68354e2 commit f8fbc7f
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 @@ -396,7 +396,7 @@ async fn run() {
let file = if config.append {
file.write(true).append(true)
} else {
file.write(true)
file.write(true).truncate(true)
};

let mut file = match file.open(&config.output_file) {
Expand Down

0 comments on commit f8fbc7f

Please sign in to comment.