Arguments.parse

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

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

Parameters

input const(istring)[]

array of strings 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