mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Fix -o option
This commit is contained in:
@@ -86,7 +86,7 @@ fn main() {
|
|||||||
let mut output: Box<dyn ::std::io::Write> = if output == "-" {
|
let mut output: Box<dyn ::std::io::Write> = if output == "-" {
|
||||||
Box::new(::std::io::stdout())
|
Box::new(::std::io::stdout())
|
||||||
} else {
|
} else {
|
||||||
Box::new(ok_or_exit!(::std::fs::File::open(output), 1))
|
Box::new(ok_or_exit!(::std::fs::File::create(output), 1))
|
||||||
};
|
};
|
||||||
|
|
||||||
let ext = input.extension();
|
let ext = input.extension();
|
||||||
|
|||||||
Reference in New Issue
Block a user