How do I access program arguments in Swift?

Process was just renamed into CommandLine (since Swift 3.0 August 4 snapshot)

let arguments = CommandLine.arguments

(for some reason this wasn’t mentioned on the changelog)

Leave a Comment