Skip to content

Commit d1f4e35

Browse files
neonichuMaxDesiatov
authored andcommitted
Hide --test-product option (#6892)
This option is only useful when in cases where SwiftPM offers more than a single test product. Currently that requires either using XCBuild or a multi-root data file which are both hidden and experimental, so this option should be hidden, too, in order to not confuse users. It could be interesting to investigate changing the build model so that we would always build a test product per test target and if that happens we could publicize this option again.
1 parent 199cc22 commit d1f4e35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Commands/SwiftTestTool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ struct SharedOptions: ParsableArguments {
7171

7272
/// The test product to use. This is useful when there are multiple test products
7373
/// to choose from (usually in multiroot packages).
74-
@Option(help: "Test the specified product.")
74+
@Option(help: .hidden)
7575
var testProduct: String?
7676
}
7777

0 commit comments

Comments
 (0)