Re: [swift-users] ProcessInfo arguments when running as a script?

2016-08-18 Thread Jon Shier via swift-users
Jordan: You’re quite right. I knew something had been renamed but between Process and ProcessInfo I lost my way. Jon > On Aug 18, 2016, at 11:05 PM, Jordan Rose wrote: > > I’d be surprised if the behavior of ProcessInfo has actually changed. >

[swift-users] ProcessInfo arguments when running as a script?

2016-08-18 Thread Jon Shier via swift-users
Swift Users: I’m trying to parse the command-line arguments of a Swift 3 script using Xcode 8 beta 6. However, ProcessInfo’s arguments array now contains all of the swift compiler arguments as well as the command itself. For example, this script: #!/usr/bin/env swift import Foundation