-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Hide unused legacy --sdk and --toolchain options from CLI help
#9447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…tput 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.
|
@swift-ci test |
|
@swift-ci test self hosted windows |
|
Since we are changing the command line arguments, should this go through a Swift Evolution proposal process? I wonder if we should also mark these command line arguments as deprecated too. |
|
Actually, I'm about to start using I'm not sure what the |
@bkhouri We're not changing command-line arguments in this PR.
I'm not sure that's currently warranted based on what Doug says below.
@dschaefer2 No debating that, it may be a legitimate option, but in the current situation it's untenable to have it in help output with no help whatsoever and no clear use cases for the majority of our users. My proposal is to hide it until we have clear and detailed guidelines for its usage.
Similarly, that's one more reason to have it as hidden until we figure that out. |
|
Just a few examples to illustrate the problem: https://forums.swift.org/t/differences-between-sdk-swift-sdk-toolchain-and-toolset/82438 Our users are confused by these legacy options. They frequently use When we figure out how and when |
finagolfin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completely agree, these flags were added five years ago as a simple hack in #2604 to give users CLI overrides over the original destination JSON format, which has changed since then and the flags haven't kept up.
I'm looking into changing --triple to work with the new JSON format in #9229 and will update that flag's help also there, but these two should be hidden until we get them working well again.
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.