backport browser flag default value support

This commit is contained in:
Kevin Yue committed 2026-04-18 23:01:26 +08:00
1 parent 2576b08a89
commit 3028224bd2
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -73,7 +73,9 @@ struct Cli {
#[arg( #[arg(
long, long,
help = "The browser to use for authentication, e.g., `default`, `firefox`, `chrome`, `chromium`, `remote`, or the path to the browser executable. Use `remote` for headless servers" help = "The browser to use for authentication, e.g., `default`, `firefox`, `chrome`, `chromium`, `remote`, or the path to the browser executable. Use `remote` for headless servers",
default_missing_value = "default",
num_args=0..=1
)] )]
browser: Option<String>, browser: Option<String>,
} }
+3 -1
View File
@@ -104,7 +104,9 @@ pub(crate) struct ConnectArgs {
#[arg( #[arg(
long, long,
help = "Use the specified browser to authenticate, e.g., `default`, `firefox`, `chrome`, `chromium`, `remote`, or the path to the browser executable. Use `remote` for headless servers" help = "Use the specified browser to authenticate, e.g., `default`, `firefox`, `chrome`, `chromium`, `remote`, or the path to the browser executable. Use `remote` for headless servers",
default_missing_value = "default",
num_args=0..=1
)] )]
browser: Option<String>, browser: Option<String>,
} }