From f055fad402083c144d73ada4275b6f879295f4e8 Mon Sep 17 00:00:00 2001 From: everpcpc Date: Fri, 28 Apr 2023 17:06:48 +0800 Subject: [PATCH] fix(cli): implicitly set output format to for --time (#105) --- cli/Cargo.toml | 2 +- cli/src/main.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 411118515..e76dd09a6 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bendsql" -version = "0.3.4" +version = "0.3.6" edition = "2021" license = "Apache-2.0" description = "Databend Native Command Line Tool" diff --git a/cli/src/main.rs b/cli/src/main.rs index f552100bb..9ba9e5b49 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -157,7 +157,7 @@ struct Args { #[clap( long, - help = "Only show execution time without results, only works with output format `null`." + help = "Only show execution time without results, will implicitly set output format to `null`." )] time: bool, } @@ -288,6 +288,7 @@ pub async fn main() -> Result<()> { } if args.time { settings.time = true; + settings.output_format = OutputFormat::Null; } let mut session = session::Session::try_new(dsn, settings, is_repl).await?;