From 0c44bc349f0010ee02496a77a26ff6708ca92ca5 Mon Sep 17 00:00:00 2001 From: RichardBrown384 Date: Wed, 29 May 2024 11:05:15 +0200 Subject: [PATCH] Correct Parent Parser errors in README.md * Rename parent_parser -> surface_parser * The second constructor argument is a string. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 87a51ea6..89966c6c 100644 --- a/README.md +++ b/README.md @@ -799,8 +799,8 @@ A parser may use arguments that could be used by other parsers. These shared arguments can be added to a parser which is then used as a "parent" for parsers which also need those arguments. One or more parent parsers may be added to a parser with `.add_parents`. The positional and optional arguments in each parent is added to the child parser. ```cpp -argparse::ArgumentParser surface_parser("surface", 1.0, argparse::default_arguments::none); -parent_parser.add_argument("--area") +argparse::ArgumentParser surface_parser("surface", "1.0", argparse::default_arguments::none); +surface_parser.add_argument("--area") .default_value(0) .scan<'i', int>();