CommandOptionalInput
@propertyWrapper
public class CommandOptionalInput<Value> : CommandInputSpecification where Value : CommandArgumentValue
An input argument is an argument that represents a file or similar. If it’s the last argument, it could optionally be variadic.
Example: aFile.txt
or file1.txt file2.txt file3.txt
-
Undocumented
Declaration
Swift
public let defaultValue: Value
-
Undocumented
Declaration
Swift
public let validationRegex: String?
-
Declaration
Swift
public let description: String
-
Undocumented
Declaration
Swift
public let type: CommandInputType
-
Undocumented
Declaration
Swift
public private(set) var name: String?
-
Undocumented
Declaration
Swift
public var wrappedValue: Value { get set }
-
Undocumented
Declaration
Swift
public init(default: Value, regex: String? = nil, description: String)
-
Undocumented
Declaration
Swift
public func bindValue(_ argument: String) throws
-
Undocumented
Declaration
Swift
public func assignName(_ name: String)