CommandArgs

Encapsulates a set of application arguments.

This class serves two purposes. The first is to provide an API for parsing command line arguments (getopt). At the same time it records all calls to getopt and provides a list of all possible options using the recognizedArgs property.

Constructors

this
this(string[] args)

Initializes the list of source arguments.

Members

Functions

dropAllArgs
void dropAllArgs()

Resets the list of available source arguments.

extractRemainingArgs
string[] extractRemainingArgs()

Returns the list of unprocessed arguments and calls dropAllArgs.

getopt
void getopt(string names, T* var, string[] help_text)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

recognizedArgs
const(Arg)[] recognizedArgs [@property getter]

Returns the list of all options recognized.

Structs

Arg
struct Arg
Undocumented in source.

Meta