Skip to content

Commit a408582

Browse files
authored
Handle both SwiftArgParser 0.3.x and 0.4.x output. (#3338)
rdar://75172724
1 parent e372f7a commit a408582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/CommandsTests/RunToolTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class RunToolTests: XCTestCase {
2424

2525
func testUsage() throws {
2626
let stdout = try execute(["-help"]).stdout
27-
XCTAssert(stdout.contains("USAGE: swift run <options>"), "got stdout:\n" + stdout)
27+
XCTAssert(stdout.contains("USAGE: swift run <options>") || stdout.contains("USAGE: swift run [<options>]"), "got stdout:\n" + stdout)
2828
}
2929

3030
func testSeeAlso() throws {

0 commit comments

Comments
 (0)