Skip to content

Commit b0ec2b8

Browse files
committed
Use the CleanExit API instead of manually printing the help message
1 parent 6c2ebac commit b0ec2b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/Swiftly/Run.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ internal struct Run: SwiftlyCommand {
5858

5959
// Handle the specific case where help is requested of the run subcommand
6060
if command == ["--help"] {
61-
print(Run.helpMessage(for: Run.self))
62-
Foundation.exit(0)
61+
throw CleanExit.helpRequest(self)
6362
}
6463

6564
var config = try Config.load()

0 commit comments

Comments
 (0)