BloombergLP::balcl::CommandLine::parse

Parse the command-line arguments in argv of length argc.

Synopses

Declared in <balcl_commandline.h>

Parse the command-line arguments in argv of length argc.

int
parse(
    int argc,
    char const const* argv[]);
» more...

Parse the command-line arguments in argv of length argc.

int
parse(
    int argc,
    char const const* argv[],
    std::ostream& errorStream);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
argclength of the argv array
argvarray of command-line argument strings
errorStreamstream to which parse errors are written