From 4ef6e625b9141431652ce01d3ef8b456c60e2b71 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Thu, 4 Dec 2025 22:58:29 +0000 Subject: [PATCH] Hide unused legacy `--sdk` and `--toolchain` options from CLI help output These options are not recommended for general use and are confusing for end users that don't clearly distinguish between SDKs and Swift SDKs. These options also predate Swift SDK introduction, that's why historically they were kept in help output still. Now that Swift SDKs are no longer experimental, we should hide legacy options to reduce the chance for confusion. --- Sources/CoreCommands/Options.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/CoreCommands/Options.swift b/Sources/CoreCommands/Options.swift index 3b7411d8ce9..656c3370c9c 100644 --- a/Sources/CoreCommands/Options.swift +++ b/Sources/CoreCommands/Options.swift @@ -459,11 +459,11 @@ public struct BuildOptions: ParsableArguments { public var customCompileTriple: Triple? /// Path to the compilation destination’s SDK. - @Option(name: .customLong("sdk")) + @Option(name: .customLong("sdk"), help: .hidden) public var customCompileSDK: AbsolutePath? /// Path to the compilation destination’s toolchain. - @Option(name: .customLong("toolchain")) + @Option(name: .customLong("toolchain"), help: .hidden) public var customCompileToolchain: AbsolutePath? /// The architectures to compile for.