From 347881f5b38fc996db6d9b09211ec9c92f53997a Mon Sep 17 00:00:00 2001 From: Pranav Srinivas Kumar Date: Mon, 1 Apr 2019 19:58:41 -0400 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e26a944..14fec0f 100644 --- a/README.md +++ b/README.md @@ -174,11 +174,11 @@ program.add_argument("-c") .default_value(std::vector{0.0f, 0.0f}) .action([](const std::string& value) { return std::stof(value); }); -program.parse_args({ "./main", "-abc", "3.14", "2.718" }); +program.parse_args(argc, argv); -auto a = program.get("-a"); // true -auto b = program.get("-b"); // true -auto c = program.get>("-c"); // {3.14f, 2.718f} +auto a = program.get("-a"); +auto b = program.get("-b"); +auto c = program.get>("-c"); /// Some code that prints parsed arguments ```