Arguments.parse

Parse string[] into a set of Argument instances. The 'sloppy' option allows for unexpected arguments without error.

Returns false where an error condition occurred, whereupon the arguments should be traversed to discover said condition(s):

auto args = new Arguments;
if (! args.parse (...))
      stderr (args.errors(&stderr.layout.sprint));
  1. bool parse(const(char)[] input, bool sloppy)
    class Arguments
    final
    bool
    parse
    (
    const(char)[] input
    ,
    bool sloppy = false
    )
  2. bool parse(const(char[])[] input, bool sloppy)

Meta