carb::options::Options

Defined in carb/extras/Options.h

class Options

Receives the results of parsing an options string.

This represents the base class that specific option parsers should inherit from.

Public Functions

template<typename T>
inline T *cast()

Helper function to cast the args parameter to a parser function.

Returns

This object cast to the requested type.

Public Members

int argc = 0

The original argument count from the caller.

char **argv = nullptr

The original argument list from the caller.

int firstCommandArgument = -1

The index of the first argument that was not consumed as a parsed option.