diff --git a/src/main.rs b/src/main.rs index 5cfab69..aa54333 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,7 +26,7 @@ enum Output { impl Output { fn new(file_path: &str) -> Result { - if file_path.is_empty() { + if file_path.is_empty() || file_path.eq("-") { Ok(Output::Stdout(io::stdout())) } else { Ok(Output::File(fs::File::create(file_path)?))