From b1ee80f9b6af67595707414a25c17d0aef6d2d43 Mon Sep 17 00:00:00 2001 From: Shekhar Vaidya Date: Mon, 13 Jul 2026 11:27:12 +0530 Subject: [PATCH] fix(cli): use plain "English" in --lang examples, not "English (United States)" Consumer Windows products list their English option as "English" (or "English International"), not "English (United States)" -- the exact example this used, which is why it was such a common source of --lang mismatch errors. Applies to --help, the --lang flag description, and the release workflow's usage example. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/cli-release.yml | 2 +- cli/main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cli-release.yml b/.github/workflows/cli-release.yml index 487fec5..0b14dc3 100644 --- a/.github/workflows/cli-release.yml +++ b/.github/workflows/cli-release.yml @@ -90,7 +90,7 @@ jobs: ``` msdl # fully interactive (includes Server/Enterprise) msdl "windows 11 25h2" # filter products, pick language - msdl --id 3262 --lang "English (United States)" # direct, no prompts + msdl --id 3262 --lang "English" # direct, no prompts msdl --eval server-2025 # evaluation ISOs directly msdl --list # list all products ``` diff --git a/cli/main.go b/cli/main.go index 5297457..75289f2 100644 --- a/cli/main.go +++ b/cli/main.go @@ -167,7 +167,7 @@ func run(args []string) error { Usage: msdl [search terms] interactive: filter + pick product, pick language msdl --id 3262 skip product picker - msdl --id 3262 --lang "English (United States)" no prompts, print URL directly + msdl --id 3262 --lang "English" no prompts, print URL directly (language names vary by product — omit --lang or check the error's "available" list to see them) msdl --eval [slug] evaluation ISOs (server-2025, win11-ent, ...) @@ -185,7 +185,7 @@ More info: https://msdl.tech-latest.com/cli`) } productID := fs.String("id", "", "consumer product ID (skips product picker)") - langFlag := fs.String("lang", "", `language name, e.g. "English (United States)"`) + langFlag := fs.String("lang", "", `language name, e.g. "English"`) evalMode := fs.Bool("eval", false, "fetch evaluation ISOs") listMode := fs.Bool("list", false, "list all products and exit") noContributeFlag := fs.Bool("no-contribute", false, "skip sharing the link with the msdl.tech cache")