Update README.md

Fixed the example in section" #### Deciding if the value was given by the user".
This commit is contained in:
Dennis-Bbg 2022-04-21 11:52:12 +02:00 committed by GitHub
parent d2acb6aa44
commit 71a9a7a53e
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 {