mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 07:04:39 +00:00
commit
e0d656ec71
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user