diff options
author | Taylor Braun-Jones <taylor@braun-jones.org> | 2016-05-13 01:06:13 +0300 |
---|---|---|
committer | Taylor Braun-Jones <taylor@braun-jones.org> | 2016-05-13 01:06:13 +0300 |
commit | 00dc8b3018e6bd80de7f0711d1d164e75569776e (patch) | |
tree | 862ae823b0f1125d62a81c4542768d89322ce78b /README.md | |
parent | aec97a6f53c3486fc51e0d9857f10b683180d668 (diff) |
README.md: Fix compile errors in quick start example
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |