We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6855f88 commit 926fa97Copy full SHA for 926fa97
2 files changed
.swift-version
@@ -1 +1 @@
1
-3.0-PREVIEW-6
+3.0
Sources/Commandant/Errors.swift
@@ -43,11 +43,7 @@ internal func missingArgumentError<ClientError>(_ argumentName: String) -> Comma
43
/// Constructs an error by combining the example of key (and value, if applicable)
44
/// with the usage description.
45
internal func informativeUsageError<ClientError>(_ keyValueExample: String, usage: String) -> CommandantError<ClientError> {
46
-#if os(Linux)
47
- let lines = usage.components(separatedBy: NSCharacterSet.newlines())
48
-#else
49
let lines = usage.components(separatedBy: .newlines)
50
-#endif
51
52
return .usageError(description: lines.reduce(keyValueExample) { previous, value in
53
return previous + "\n\t" + value
0 commit comments