From 71a9a7a53ec78ee903632f51abfac0c10fecb3ab Mon Sep 17 00:00:00 2001 From: Dennis-Bbg <75340117+Dennis-Bbg@users.noreply.github.com> Date: Thu, 21 Apr 2022 11:52:12 +0200 Subject: [PATCH] Update README.md Fixed the example in section" #### Deciding if the value was given by the user". --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b23cda5..a12c3c8 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ If you want to know whether the user supplied a value for an argument that has a ```cpp 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 .help("specify the cat's fur color"); try {