标签:
#!/usr/bin/env xcrun swift import Foundation let args = Process.arguments print("Arg:\(args)")
chmod +x x.sh 添加执行权限
Swift 脚本(运行时带参数)
原文地址:http://www.cnblogs.com/levy/p/5885154.html