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
acd9e02d77
commit
2149ab40b9
@ -146,6 +146,7 @@ argparse::ArgumentParser program("main");
|
|||||||
program.add_argument("--query_point")
|
program.add_argument("--query_point")
|
||||||
.help("3D query point")
|
.help("3D query point")
|
||||||
.nargs(3)
|
.nargs(3)
|
||||||
|
.default(std::vector<double>{0.0, 0.0, 0.0})
|
||||||
.action([](const std::string& value) { return std::stod(value); });
|
.action([](const std::string& value) { return std::stod(value); });
|
||||||
|
|
||||||
program.parse_args(argc, argv); // Example: ./main --query_point 3.5 4.7 9.2
|
program.parse_args(argc, argv); // Example: ./main --query_point 3.5 4.7 9.2
|
||||||
|
Loading…
Reference in New Issue
Block a user