12 lines · 258 B · Swift
RawDownload
enum ExitCode: Int32 {    case success = 0    case failure = 1    case binaryNotFound = 2    case parseError = 3    case timeout = 4    case usage = 64     init(_ rawValue: Int) {        self = ExitCode(rawValue: Int32(rawValue)) ?? .failure    }}