overwrite output file by default
This commit is contained in:
parent
ff8ba4ae10
commit
039bfcc201
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -54,7 +54,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "bin2hpp"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"clap",
|
||||
]
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "bin2hpp"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
authors = ["Adam Macdonald"]
|
||||
edition = "2024"
|
||||
license = "Unlicense"
|
||||
|
@ -117,7 +117,8 @@ fn main() -> ExitCode {
|
||||
|
||||
let output_file = match OpenOptions::new()
|
||||
.write(true)
|
||||
.create_new(true)
|
||||
.truncate(true)
|
||||
.create(true)
|
||||
.open(output_path)
|
||||
{
|
||||
Ok(f) => f,
|
||||
|
Loading…
x
Reference in New Issue
Block a user