Commit 5f0e82e7 authored by Drew's avatar Drew

Upgrade to Swift Preview 6

parent 9be66639
......@@ -58,7 +58,7 @@ extension String {
throw FileUtilsError.UTF8Error
}
self.init(str)
self.init(describing: str)
if close(file) != 0 {
throw FileUtilsError.CloseError(Int(errno))
}
......
......@@ -25,14 +25,14 @@ func usage() {
print("Usage: caroline-static-tool --core file1.swift file2.swift file3.swift > /path/to/main.swift")
}
if Process.arguments.count < 3 {
if CommandLine.arguments.count < 3 {
usage()
exit(1)
}
precondition(Process.arguments[1] == "--core", "Non-core is unsupported")
precondition(CommandLine.arguments[1] == "--core", "Non-core is unsupported")
let fileNames = Array(Process.arguments[2..<Process.arguments.count])
let fileNames = Array(CommandLine.arguments[2..<CommandLine.arguments.count])
print(ApacheLicense)
print()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment