mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 22:54:39 +00:00
Update README.md
This commit is contained in:
parent
2149ab40b9
commit
1d85a98c42
@ -146,7 +146,7 @@ argparse::ArgumentParser program("main");
|
||||
program.add_argument("--query_point")
|
||||
.help("3D query point")
|
||||
.nargs(3)
|
||||
.default(std::vector<double>{0.0, 0.0, 0.0})
|
||||
.default_value(std::vector<double>{0.0, 0.0, 0.0})
|
||||
.action([](const std::string& value) { return std::stod(value); });
|
||||
|
||||
program.parse_args(argc, argv); // Example: ./main --query_point 3.5 4.7 9.2
|
||||
|
Loading…
Reference in New Issue
Block a user