From 20fb86420f250c280b665f73c2694c1d7d967aeb Mon Sep 17 00:00:00 2001 From: Thaumy Date: Mon, 25 Sep 2023 14:03:51 +0800 Subject: [PATCH] fix: quiet option --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 418be32..716c3e0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -156,6 +156,10 @@ async fn main() -> Result<()> { _ => "Invalid usage, follow '--help' for more information".to_owned() }; + if args.quiet { + return ().into_ok(); + } + if output.ends_with("\n\n") { print!("{}", &output[..output.len() - 1]); } else if output.ends_with('\n') {