Arguments.parse

Parses the command-line arguments into a set of Argument instances. The command-line arguments are expected to be passed in a string.

  1. bool parse(istring input, bool sloppy)
    class Arguments
    bool
    parse
    (,
    bool sloppy = false
    )
  2. bool parse(const(istring)[] input, bool sloppy)

Parameters

input istring

string to be parsed (contains command-line arguments)

sloppy bool

true if any unexpected arguments found during parsing should be accepted on-the-fly, false if unexpected arguments should be treated as error

Return Value

Type: bool

true if parsing was successful, false otherwise

Meta