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
bf3f582740
commit
a60cb8baa2
@ -37,6 +37,7 @@ int main(int argc, char *argv[]) {
|
|||||||
.action([](const std::string& value) { return std::stoi(value); });
|
.action([](const std::string& value) { return std::stoi(value); });
|
||||||
|
|
||||||
program.parse_args(argc, argv);
|
program.parse_args(argc, argv);
|
||||||
|
|
||||||
auto input = program.get<int>("square");
|
auto input = program.get<int>("square");
|
||||||
std::cout << (input * input) << std::endl;
|
std::cout << (input * input) << std::endl;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user