From bf6b723a8aba7cedff80744416e945e70619e489 Mon Sep 17 00:00:00 2001 From: dumko2001 Date: Wed, 18 Mar 2026 13:37:50 +0530 Subject: [PATCH 1/3] fix(setup): handle --help explicitly in setup flow --- src/setup.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/setup.rs b/src/setup.rs index c3302c78..6ab550c7 100644 --- a/src/setup.rs +++ b/src/setup.rs @@ -1599,6 +1599,16 @@ fn prompt_login_after_setup() -> Result { /// Run the full setup flow. Orchestrates all steps and outputs JSON summary. pub async fn run_setup(args: &[String]) -> Result<(), GwsError> { let opts = parse_setup_args(args); + if args.iter().any(|a| a == "--help" || a == "-h") { + eprintln!( + "Usage: gws auth setup [options]\n\n\ + Options:\n \ + --project Use a specific GCP project\n \ + --login Run `gws auth login` after successful setup\n \ + --dry-run Preview changes without making them" + ); + return Ok(()); + } let dry_run = opts.dry_run; let interactive = std::io::IsTerminal::is_terminal(&std::io::stdin()) && !dry_run; From 83f0d20f899bc6c94911bfb9a10b2da02f254386 Mon Sep 17 00:00:00 2001 From: dumko2001 Date: Wed, 18 Mar 2026 14:07:04 +0530 Subject: [PATCH 2/3] chore: add changeset for setup help fix --- .changeset/fix-issue-280-setup-help.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 .changeset/fix-issue-280-setup-help.md diff --git a/.changeset/fix-issue-280-setup-help.md b/.changeset/fix-issue-280-setup-help.md new file mode 100644 index 00000000..2057ed5c --- /dev/null +++ b/.changeset/fix-issue-280-setup-help.md @@ -0,0 +1 @@ +---\n"gws": patch\n---\n\nfix(setup): handle --help explicitly in setup flow to prevent accidental project creation From 1f9e964b60abfc355f8fb60089e5e02dc04660b8 Mon Sep 17 00:00:00 2001 From: dumko2001 Date: Wed, 18 Mar 2026 15:07:42 +0530 Subject: [PATCH 3/3] chore: correct changeset package name --- .changeset/fix-issue-280-setup-help.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/fix-issue-280-setup-help.md b/.changeset/fix-issue-280-setup-help.md index 2057ed5c..318b087f 100644 --- a/.changeset/fix-issue-280-setup-help.md +++ b/.changeset/fix-issue-280-setup-help.md @@ -1 +1 @@ ----\n"gws": patch\n---\n\nfix(setup): handle --help explicitly in setup flow to prevent accidental project creation +---\n"@googleworkspace/cli": patch\n---\n\nfix(setup): handle --help explicitly in setup flow to prevent accidental project creation