CommandLine

enum CommandLine

Command-line arguments for the current process.

Import import Swift

Static Variables

static var argc: Int32

Access to the raw argc value from C.

Declaration

static var argc: Int32 { get }
static var arguments: [String]

Access to the swift arguments, also use lazy initialization of static properties to safely initialize the swift arguments.

Declaration

static var arguments: [String] { get set }
static var unsafeArgv: UnsafeMutablePointer<UnsafeMutablePointer<Int8>?>

Access to the raw argv value from C. Accessing the argument vector through this pointer is unsafe.

Declaration

static var unsafeArgv: UnsafeMutablePointer<UnsafeMutablePointer<Int8>?> { get }