BloombergLP::balcl::CommandLine::parse

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

Synopsis

Declared in <balcl_commandline.h>

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

Description

Write any error message to the specified errorStream. Return 0 on success, and a non-zero value otherwise.

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