Update README.md

This commit is contained in:
Pranav Srinivas Kumar 2019-04-01 19:57:22 -04:00 committed by GitHub
parent 2149ab40b9
commit 1d85a98c42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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