Skip to content

Commit 276d4ef

Browse files
authored
Merge pull request #989 from stevapple/swiftc-help
Hide intro for `swiftc --help`
2 parents 00d13d2 + e818f65 commit 276d4ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/swift-help/main.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ struct SwiftHelp: ParsableCommand {
123123
switch topic {
124124
case .driver(let kind):
125125
driverOptionTable.printHelp(driverKind: kind, includeHidden: showHidden)
126-
printIntro()
126+
if kind == .interactive {
127+
printIntro()
128+
}
127129
case .subcommand(let subcommand):
128130
// Try to find the subcommand adjacent to the help tool.
129131
// If we didn't find the tool there, let the OS search for it.

0 commit comments

Comments
 (0)