Enumerationswift 6.1.2Swift
CommandLine
Command-line arguments for the current process.
@frozen enum CommandLineCommand-line arguments for the current process.
@frozen enum CommandLineimport Swiftprotocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
static var argc: Int32 { get }Access to the raw argc value from C.
static var arguments: [String] { get set }An array that provides access to this program’s command line arguments.
static var unsafeArgv: UnsafeMutablePointer<UnsafeMutablePointer<Int8>?> { get }Access to the raw argv value from C.