From faeb37b6e4894e66848789cf82fb1d24565797f6 Mon Sep 17 00:00:00 2001 From: Ryan Mansfield Date: Sun, 28 Jul 2024 11:37:03 -0400 Subject: [PATCH] Mention swift-format in help subcommands. Fixes https://github.com/swiftlang/swift/issues/75502 --- Sources/swift-help/main.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/swift-help/main.swift b/Sources/swift-help/main.swift index 0cb4f4c07..5eb6603d8 100644 --- a/Sources/swift-help/main.swift +++ b/Sources/swift-help/main.swift @@ -47,7 +47,7 @@ enum HelpTopic: ExpressibleByArgument, CustomStringConvertible { } enum Subcommand: String, CaseIterable { - case build, package, run, test, repl + case build, package, format, run, test, repl var description: String { switch self { @@ -61,6 +61,8 @@ enum Subcommand: String, CaseIterable { return "Run package tests" case .repl: return "Experiment with Swift code interactively" + case .format: + return "Format or lint Swift source code" } } }