Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jarro2783/cxxopts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Braun-Jones <taylor@braun-jones.org>2016-05-13 01:06:13 +0300
committerTaylor Braun-Jones <taylor@braun-jones.org>2016-05-13 01:06:13 +0300
commit00dc8b3018e6bd80de7f0711d1d164e75569776e (patch)
tree862ae823b0f1125d62a81c4542768d89322ce78b /README.md
parentaec97a6f53c3486fc51e0d9857f10b683180d668 (diff)
README.md: Fix compile errors in quick start example
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index dbffee8..0736fde 100644
--- a/README.md
+++ b/README.md
@@ -22,13 +22,14 @@ Additionally, anything after `--` will be parsed as a positional argument.
Create a cxxopts::Options instance.
- cxxopts::Options options;
+ cxxopts::Options options("MyProgram", "One line description of MyProgram");
Then use `add_options`.
options.add_options()
("d,debug", "Enable debugging")
("f,file", "File name", cxxopts::value<std::string>())
+ ;
Options can be declared with a short and/or long option. A description must be
provided. The third argument is the value, if omitted it is boolean. Any type