Skip to content

Commit

Permalink
Enable syntax highlighting in README.adoc (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse authored and grafikrobot committed Nov 24, 2019
1 parent a8a8751 commit 3d2c7da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ To use, just `#include <lyra/lyra.hpp>`

A parser for a single option can be created like this:

[source]
[source,cpp]
----
int width = 0;
auto cli = cli_parser()
Expand All @@ -74,7 +74,7 @@ auto cli = cli_parser()

You can use this parser directly like this:

[source]
[source,cpp]
----
auto result = cli.parse( { argc, argv } );
if ( !result )
Expand All @@ -90,7 +90,7 @@ Note that exceptions are not used for error handling.

You can combine parsers by composing with `|`, like this:

[source]
[source,cpp]
----
int width = 0;
std::string name;
Expand Down

0 comments on commit 3d2c7da

Please sign in to comment.