BloombergLP::balcl::CommandLine::printUsage

printUsage overloads

Synopses

Declared in <balcl_commandline.h>

Print usage to the specified output errorStream, describing what the command line should look like. If errorStream is not specified, print usage to stderr. Optionally specify programName to use as the name of the program in the printed usage. If programName is not specified and if parse has been previously called successfully, use the first element of the argv argument; otherwise, use a default name. This method can be invoked at any time, even before parse has been invoked on this object.

void
printUsage() const;
» more...

Print usage to the specified errorStream, describing what the command line should look like.

void
printUsage(std::ostream& errorStream) const;
» more...

Print usage to stderr, using the specified programName as the name of the program in the printed usage.

void
printUsage(std::string_view const& programName) const;
» more...

Print usage to the specified errorStream, using the specified programName as the name of the program in the printed usage.

void
printUsage(
    std::ostream& errorStream,
    std::string_view const& programName) const;
» more...