class ref _Option
new ref create( long': String val, short': (String val | None val), arg': (None val | StringArgument val | I64Argument val | U64Argument val | F64Argument val), mode': (Required val | Optional val)) : _Option ref^
Long option name.
E.g. "help" for a "--help" option.
Short option name (if any).
E.g. "h" for a "-h" option.
[U64Argument](options-U64Argument.md) val | [F64Argument](options-F64Argument.md) val)
The type of the expected argument.
None, if this option is a flag.
E.g. "--help"
determining if this Option is required or optional
fun box matches( name: String box, shortmatch: Bool val) : Bool val
fun box has_argument() : Bool val
fun box requires_argument() : Bool val
fun box accepts( argument: String box) : Bool val
© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/options-_Option