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:
I’d be surprised if the behavior of ProcessInfo has actually changed. Swift.CommandLine (formerly Swift.Process, unrelated to ProcessInfo) should have the script arguments only.
Jordan
···
On Aug 18, 2016, at 19:14, Jon Shier via swift-users <swift-users@swift.org> wrote:
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:
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 <jordan_rose@apple.com> wrote:
I’d be surprised if the behavior of ProcessInfo has actually changed. Swift.CommandLine (formerly Swift.Process, unrelated to ProcessInfo) should have the script arguments only.
Jordan
On Aug 18, 2016, at 19:14, Jon Shier via swift-users <swift-users@swift.org> wrote:
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: