Skip to content

Commit

Permalink
fix: quiet option
Browse files Browse the repository at this point in the history
  • Loading branch information
Thaumy committed Sep 25, 2023
1 parent aa33b3a commit 20fb864
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 20fb864

Please sign in to comment.