Merge pull request #171 from Dennis-Bbg/master

Update README.md
This commit is contained in:
Pranav 2022-04-21 22:51:07 -05:00 committed by GitHub
commit e0d656ec71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,7 @@ If you want to know whether the user supplied a value for an argument that has a
```cpp ```cpp
program.add_argument("--color") program.add_argument("--color")
.default_value("orange") .default_value(std::string{"orange"}) // might otherwise be type const char* leading to an error when trying program.get<std::string>
.help("specify the cat's fur color"); .help("specify the cat's fur color");
try { try {