_Option

class ref _Option

Constructors

create

new ref create(
  long': String val,
  short': (String val | None val),
  arg': (None val | StringArgument val | I64Argument val | 
    F64Argument val),
  mode': (Required val | Optional val))
: _Option ref^

Parameters

Returns


Public fields





Public Functions

matches

fun box matches(
  name: String box,
  shortmatch: Bool val)
: Bool val

Parameters

Returns


has_argument

fun box has_argument()
: Bool val

Returns


requires_argument

fun box requires_argument()
: Bool val

Returns


accepts

fun box accepts(
  argument: String box)
: Bool val

Parameters

Returns