diff --git a/README.md b/README.md index 697f7d7..e26a944 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ argparse::ArgumentParser program("main"); program.add_argument("--query_point") .help("3D query point") .nargs(3) - .default(std::vector{0.0, 0.0, 0.0}) + .default_value(std::vector{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