#!/usr/bin/env xcrun swift
import Foundation
let args = Process.arguments
print("Arg:\(args)")
chmod +x x.sh 添加执行权限
#!/usr/bin/env xcrun swift
import Foundation
let args = Process.arguments
print("Arg:\(args)")
chmod +x x.sh 添加执行权限
转载于:https://www.cnblogs.com/levy/p/5885154.html