Options::Parse( int &, StrPtr * &, const char *, int, const ErrorId &, Error * )

Extract command line arguments and associated values.

Virtual?

No

 

Class

Options

 

Arguments

int &argc

Number of arguments

 

StrPtr * &argv

An array of arguments to parse

 

const char *opts

The list of valid options to extract

 

int flag

A flag indicating how many arguments are expected to remain when parsing is complete

 

const ErrorId &usage

An error message containing usage tips

 

Error *e

The Error object to collect any errors encountered

Returns

void

 

Notes

See the notes for the char ** &argv version of Options::Parse() for details.

See also

Options::Parse()