Skip to content

Commit

Permalink
Fixed entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Sep 5, 2024
1 parent 4b41ac7 commit a1acc3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/ReleaseTools/RootCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ struct RootCommand: AsyncParsableCommand {
/// Main entrypoint.
/// Note that this is overridden from the default implementation in `AsyncParsableCommand`,
/// to allow us to flush the log after running the command.
public static func main(_ arguments: [String]?) async {
public static func main() async {
do {
var command = try parseAsRoot(arguments)
var command = try parseAsRoot(nil)
if var asyncCommand = command as? AsyncParsableCommand {
try await asyncCommand.run()
} else {
try command.run()
Manager.shared.flush()
}
Manager.shared.flush()
} catch {
Manager.shared.flush()
exit(withError: error)
Expand Down

0 comments on commit a1acc3e

Please sign in to comment.