结构体

struct OptionInfo

public struct OptionInfo {
    public let description: ?String
    public let name: String
    public let types!: HashMap<String, ?String> = HashMap()
    public let userDefined: Bool
}

功能: 打印帮助页面时可以使用的选项的信息。

let description

public let description: ?String

功能:选项描述信息。

类型:?String

let name

public let name: String

功能:选项名称。

类型:String

let types

public let types!: HashMap<String, ?String> = HashMap()

功能:从选项类型名称映射到值的含义。

类型: HashMap<String, ?String>

let userDefined

public let userDefined: Bool

功能:选项是否已被定义。

类型:Bool