Skip to content

Commit

Permalink
fix(cli): implicitly set output format to for --time (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Apr 28, 2023
1 parent 17f5833 commit f055fad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 2 additions & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down Expand Up @@ -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?;
Expand Down

0 comments on commit f055fad

Please sign in to comment.