mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-30 12:43:52 +00:00
docs: fix variable name. (#533)
This commit is contained in:
parent
a9e8c56499
commit
ff557589e3
@ -39,7 +39,7 @@ gitbook:examples $ c++ -std=c++11 intro.cpp
|
|||||||
Much more complicated options are handled elegantly:
|
Much more complicated options are handled elegantly:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
std::string req_real_file;
|
std::string file;
|
||||||
app.add_option("-f,--file", file, "Require an existing file")
|
app.add_option("-f,--file", file, "Require an existing file")
|
||||||
->required()
|
->required()
|
||||||
->check(CLI::ExistingFile);
|
->check(CLI::ExistingFile);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user