Skip to content

Commit b4c7c98

Browse files
committed
[Commands] Avoid printing "Optional" with bogus clean mode.
1 parent b19e27b commit b4c7c98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Commands/SwiftBuildTool.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ enum CleanMode: CustomStringConvertible {
301301
self = .build
302302
case "dist"?, "distribution"?:
303303
self = .dist
304-
default:
305-
throw OptionParserError.invalidUsage("invalid clean mode: \(rawValue)")
304+
case let value?:
305+
throw OptionParserError.invalidUsage("invalid clean mode: \(value)")
306306
}
307307
}
308308

0 commit comments

Comments
 (0)