From 00dc8b3018e6bd80de7f0711d1d164e75569776e Mon Sep 17 00:00:00 2001 From: Taylor Braun-Jones Date: Thu, 12 May 2016 18:06:13 -0400 Subject: [PATCH] README.md: Fix compile errors in quick start example --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) + ; 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 -- libgit2 0.21.4