ArgParser

Undocumented in source.

Constructors

this
this(string[] args)
Undocumented in source.

Members

Functions

popFront
void popFront()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
front
Result front [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
remainingArgs
auto remainingArgs [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Result
struct Result
Undocumented in source.

Examples

assert(
    ArgParser([
        "dub", "run", "-b", "release", "--compiler=ldc", "--", "abc"
    ]).equal([
        ArgParser.Result("dub", null, null, ArgParser.Result.Kind.rawText),
        ArgParser.Result("run", null, null, ArgParser.Result.Kind.rawText),
        ArgParser.Result("-b", "-", "b", ArgParser.Result.Kind.argument),
        ArgParser.Result("release", null, null, ArgParser.Result.Kind.rawText),
        ArgParser.Result("--compiler", "--", "compiler", ArgParser.Result.Kind.argument),
        ArgParser.Result("ldc", null, null, ArgParser.Result.Kind.rawText),
        ArgParser.Result("--", "--", "", ArgParser.Result.Kind.argument),
        ArgParser.Result("abc", null, null, ArgParser.Result.Kind.rawText),
    ])
);

Meta