From e058dd25823d82ea98c91a7ba3bcf254b567c357 Mon Sep 17 00:00:00 2001 From: Moriarty Date: Thu, 15 Dec 2022 09:50:38 +0100 Subject: [PATCH] chore: remove flag from cli Signed-off-by: Moriarty --- crates/cli/src/cli.rs | 4 ---- crates/cli/src/register.rs | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/cli/src/cli.rs b/crates/cli/src/cli.rs index b96e49e2..616aaa68 100644 --- a/crates/cli/src/cli.rs +++ b/crates/cli/src/cli.rs @@ -42,10 +42,6 @@ pub struct Cli { #[clap(long, short, help = HelpStrings::Quiet, conflicts_with = "verbose", conflicts_with = "json")] pub quiet: bool, - /// Whether the output should be json - #[clap(long, short = 'j', help = HelpStrings::Quiet, conflicts_with = "verbose", conflicts_with = "quiet")] - pub json: bool, - /// Which config path to use instead of the default one #[clap(long, short = 'o', help = HelpStrings::Config)] pub config: Option, diff --git a/crates/cli/src/register.rs b/crates/cli/src/register.rs index d4c73ed9..c60365f1 100644 --- a/crates/cli/src/register.rs +++ b/crates/cli/src/register.rs @@ -23,7 +23,7 @@ use std::path::PathBuf; /// Register the subcommands on the cli pub async fn register() -> Result<()> { let cli = Cli::parse(); - let level = if cli.quiet || cli.json { + let level = if cli.quiet { LogLevel::Off } else { match cli.verbose {