mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 15:14:39 +00:00
Update README.md
This commit is contained in:
parent
29f0c52f5f
commit
bc4eddc138
@ -330,9 +330,9 @@ program.add_argument("input")
|
|||||||
return std::string{ "baz" };
|
return std::string{ "baz" };
|
||||||
});
|
});
|
||||||
|
|
||||||
program.parse_args({ "./test", "fez" });
|
program.parse_args(argc, argv);
|
||||||
|
|
||||||
auto input = program.get("input"); // baz
|
auto input = program.get("input");
|
||||||
std::cout << input << std::endl;
|
std::cout << input << std::endl;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user