Created
August 30, 2016 10:22
-
-
Save sgr-ksmt/32752cefe2c38cfb74e62b8845a0d817 to your computer and use it in GitHub Desktop.
swift scripting for 2.2 and 3.0!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env xcrun swift | |
let arguments = Array(Process.arguments.dropFirst()) | |
print(arguments.joinWithSeparator(",")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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