Skip to content

Commit faeb37b

Browse files
committed
Mention swift-format in help subcommands.
Fixes swiftlang/swift#75502
1 parent 661e0bc commit faeb37b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/swift-help/main.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ enum HelpTopic: ExpressibleByArgument, CustomStringConvertible {
4747
}
4848

4949
enum Subcommand: String, CaseIterable {
50-
case build, package, run, test, repl
50+
case build, package, format, run, test, repl
5151

5252
var description: String {
5353
switch self {
@@ -61,6 +61,8 @@ enum Subcommand: String, CaseIterable {
6161
return "Run package tests"
6262
case .repl:
6363
return "Experiment with Swift code interactively"
64+
case .format:
65+
return "Format or lint Swift source code"
6466
}
6567
}
6668
}

0 commit comments

Comments
 (0)