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

Name

Description

argc

length of the argv array

argv

array of command‐line argument strings

errorStream

stream to which parse errors are written

Created with MrDocs