Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
swift scripting for 2.2 and 3.0!
#!/usr/bin/env xcrun swift
let arguments = Array(Process.arguments.dropFirst())
print(arguments.joinWithSeparator(","))
#!/usr/bin/env xcrun swift
let arguments = Array(CommandLine.arguments.dropFirst())
print(arguments.joined(separator: ","))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment