From 4f3bfd10255cde34d6ada6401a9843ef1f76ba0f Mon Sep 17 00:00:00 2001 From: Yuxuan Lu Date: Wed, 7 Jun 2023 04:24:53 +0800 Subject: [PATCH] Save two more kay strokes (#1708) --- tools/cli/src/cli/common.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/cli/src/cli/common.rs b/tools/cli/src/cli/common.rs index a81249c94..4e035f204 100644 --- a/tools/cli/src/cli/common.rs +++ b/tools/cli/src/cli/common.rs @@ -203,6 +203,7 @@ impl CommonOpt { ToClientError::NeedLogin(username) => { if !Confirm::new() .with_prompt("Would you like to login again?") + .default(true) .interact() .expect("Failed to interact with interactive session") { @@ -223,6 +224,7 @@ impl CommonOpt { ToClientError::NeedReauth(username) => { if !Confirm::new() .with_prompt("Would you like to re-authenticate?") + .default(true) .interact() .expect("Failed to interact with interactive session") {