diff --git a/README.md b/README.md index 61a0273..b85bcf7 100644 --- a/README.md +++ b/README.md @@ -57,12 +57,11 @@ cxxopts::Options options("MyProgram", "One line description of MyProgram"); Then use `add_options`. ```cpp -options.add_options() +options.add_options( ("d,debug", "Enable debugging") // a bool parameter ("i,integer", "Int param", cxxopts::value()) ("f,file", "File name", cxxopts::value()) - ("v,verbose", "Verbose output", cxxopts::value()->default_value("false")) - ; + ("v,verbose", "Verbose output", cxxopts::value()->default_value("false")); ``` Options are declared with a long and an optional short option. A description