mirror of
https://github.com/kmc7468/cs420.git
synced 2026-11-04 00:00:29 +09:00
Fix -o option
This commit is contained in:
1 parent
9da544d942
commit
b5f8858825
1 file changed
+1
-1
+1
-1
@@ -86,7 +86,7 @@ fn main() {
|
||||
let mut output: Box<dyn ::std::io::Write> = if output == "-" {
|
||||
Box::new(::std::io::stdout())
|
||||
} 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();
|
||||
|
||||
Reference in new issue
Block a user