Record

Parsed

Module PuduLangDocgen.Command.Arguments

type Parsed = {
  command: Str,
  positional: Array[Str],
  flags: Array[Str],
  values: Array[(Str, Str)]
}

View source

A command, its positional arguments, and its options

Fields

Name Type Description
command Str
positional Array[Str]
flags Array[Str]
values Array[(Str, Str)]
Name Description
parse Command-line arguments read into a command, positional arguments, and options.
has Whether a flag was given.
valueOf The last value given for an option, or the fallback.
valuesOf Every value given for an option, in order.