Parser

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Members

Aliases

Argument
alias Argument = SumType!(Unknown, EndOfArgs, Positional, NamedShort, NamedLong)
Undocumented in source.

Functions

parse
auto parse(CommandArguments!T cmd, bool isDefaultCmd, T receiver, Unknown )
Undocumented in source. Be warned that the author may not have intended to support it.
parse
auto parse(CommandArguments!T cmd, bool isDefaultCmd, T receiver, EndOfArgs )
Undocumented in source. Be warned that the author may not have intended to support it.
parse
auto parse(CommandArguments!T cmd, bool isDefaultCmd, T receiver, Positional )
Undocumented in source. Be warned that the author may not have intended to support it.
parse
auto parse(CommandArguments!T cmd, bool isDefaultCmd, T receiver, NamedLong arg)
Undocumented in source. Be warned that the author may not have intended to support it.
parse
auto parse(CommandArguments!T cmd, bool isDefaultCmd, T receiver, NamedShort arg)
Undocumented in source. Be warned that the author may not have intended to support it.
parse
auto parse(CommandArguments!T cmd, bool isDefaultCmd, T receiver, Argument arg)
Undocumented in source. Be warned that the author may not have intended to support it.
parse
auto parse(Argument arg)
Undocumented in source. Be warned that the author may not have intended to support it.
parseAll
auto parseAll(CommandArguments!T cmd, T receiver)
Undocumented in source. Be warned that the author may not have intended to support it.
parseArgument
auto parseArgument(PARSE parse, T receiver, string value, string nameWithDash, size_t argIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
parseSubCommand
auto parseSubCommand(CommandArguments!T cmd, T receiver)
Undocumented in source. Be warned that the author may not have intended to support it.
splitArgumentNameValue
Argument splitArgumentNameValue(string arg)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

CmdParser
struct CmdParser
Undocumented in source.
EndOfArgs
struct EndOfArgs
Undocumented in source.
NamedLong
struct NamedLong
Undocumented in source.
NamedShort
struct NamedShort
Undocumented in source.
Positional
struct Positional
Undocumented in source.
Unknown
struct Unknown
Undocumented in source.

Variables

args
string[] args;
Undocumented in source.
cmdStack
CmdParser[] cmdStack;
Undocumented in source.
config
Config config;
Undocumented in source.
idxNextPositional
size_t idxNextPositional;
Undocumented in source.
idxParsedArgs
bool[size_t] idxParsedArgs;
Undocumented in source.
unrecognizedArgs
string[] unrecognizedArgs;
Undocumented in source.

Meta