Skip to content

Commit

Permalink
Fix help handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch committed Dec 13, 2024
1 parent 58b3e5a commit d52d79d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Sources/Frontend/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@ signal(SIGINT) { _ in

do {
var command = try PeripheryCommand.parseAsRoot()
do {
try command.run()
} catch let error as PeripheryError {
throw error
} catch {
throw PeripheryError.underlyingError(error)
}
try command.run()
} catch {
PeripheryCommand.exit(withError: error)
}

0 comments on commit d52d79d

Please sign in to comment.