/// Access to the swift arguments, also use lazy initialization of static
/// properties to safely initialize the swift arguments.
public static var arguments: [String]
= (0..<Int(argc)).map { String(cString: _unsafeArgv[$0]!) }
- Is this something the _user_ of `CommandLine` must know?
- If yes, what does it tell me?
- Or is it a remark about the _implementation_ (and should not be part of the public documentation)?
16
public static let arguments: [String] = {
17
// Use lazy initialization of static properties to safely initialize the
18
// public 'arguments' property on first use.
19
Would you mind filing a bug on bugs.swift.org <Issues · apple/swift · GitHub; for this? All of the properties on CommandLine could use some documentation attention.
-Kyle
···
On Jan 11, 2018, at 1:55 AM, Martin R via swift-users <swift-users@swift.org> wrote:
/// Access to the swift arguments, also use lazy initialization of static
/// properties to safely initialize the swift arguments.
public static var arguments: [String]
= (0..<Int(argc)).map { String(cString: _unsafeArgv[$0]!) }
- Is this something the _user_ of `CommandLine` must know?
- If yes, what does it tell me?
- Or is it a remark about the _implementation_ (and should not be part of the public documentation)?