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.

Properties

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

Returns the list of all options recognized.

Meta