README.md: corrected syntax

This commit is contained in:
Hish15 2023-09-28 12:50:13 +02:00 committed by GitHub
parent 000bfbfeae
commit e11b6b0d57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,9 +58,9 @@ Then use `add_options`.
```cpp
options.add_options(
("d,debug", "Enable debugging") // a bool parameter
("i,integer", "Int param", cxxopts::value<int>())
("f,file", "File name", cxxopts::value<std::string>())
("d,debug", "Enable debugging"), // a bool parameter
("i,integer", "Int param", cxxopts::value<int>()),
("f,file", "File name", cxxopts::value<std::string>()),
("v,verbose", "Verbose output", cxxopts::value<bool>()->default_value("false"));
```