[#BloombergLP-balcl-CommandLine-parse-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/CommandLine.adoc[CommandLine]::parse
:relfileprefix: ../../../
:mrdocs:

Parse the command&hyphen;line arguments in `argv` of length `argc`&period;

== Synopses

Declared in `&lt;balcl&lowbar;commandline&period;h&gt;`

Parse the command&hyphen;line arguments in `argv` of length `argc`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balcl/CommandLine/parse-0c.adoc[parse](
    int argc,
    char const const* argv[]);
----

[.small]#xref:BloombergLP/balcl/CommandLine/parse-0c.adoc[_» more&period;&period;&period;_]#

Parse the command&hyphen;line arguments in `argv` of length `argc`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balcl/CommandLine/parse-00.adoc[parse](
    int argc,
    char const const* argv[],
    std::ostream& errorStream);
----

[.small]#xref:BloombergLP/balcl/CommandLine/parse-00.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *argc*
| length of the `argv` array
| *argv*
| array of command&hyphen;line argument strings
| *errorStream*
| stream to which parse errors are written
|===


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