[#absl-ParseCommandLine]
= xref:absl.adoc[absl]::ParseCommandLine
:relfileprefix: ../
:mrdocs:

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

== Synopsis

Declared in `&lt;absl&sol;flags&sol;parse&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::vector&lt;char*&gt;
ParseCommandLine(
    int argc,
    char* argv[]);
----

== Description

If any unrecognized flags are located they are reported using `ReportUnrecognizedFlags`&period;

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

If any built&hyphen;in usage flags were specified on the command line (e&period;g&period; `&hyphen;&hyphen;help`), this function reports help messages and then gracefully exits the program&period;

== Return Value

All the remaining positional arguments collected by `ParseAbseilFlagsOnly`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *argc*
| The number of command&hyphen;line arguments, as passed to `main()`&period;
| *argv*
| The command&hyphen;line arguments, as passed to `main()`&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
