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?;