First parses Abseil Flags only from the command line according to the description in ParseAbseilFlagsOnly. In addition this function handles unrecognized and usage flags.

Synopsis

Declared in <absl/flags/parse.h>

std::vector<char*>
ParseCommandLine(
    int argc,
    char* argv[]);

Description

If any unrecognized flags are located they are reported using ReportUnrecognizedFlags.

If any errors detected during command line parsing, this routine reports a usage message and aborts the program.

If any built‐in usage flags were specified on the command line (e.g. ‐‐help), this function reports help messages and then gracefully exits the program.

Return Value

All the remaining positional arguments collected by ParseAbseilFlagsOnly.

Parameters

Name

Description

argc

The number of command‐line arguments, as passed to main().

argv

The command‐line arguments, as passed to main().

Created with MrDocs