C and derivatives have argc and argv (and envp) parameters to their entry point functions, but Swift doesn\'t have one proper: top-lev
argc
argv
envp
As soon as your app is up I'd use the process info:
let args = NSProcessInfo.processInfo().arguments print(args)
Nothing unsafe there, very convenient.
Note that you have to import Foundation (or Cocoa / UIKit).
import Foundation
Cocoa
UIKit