From 58777d8c845f75bae2d5eae195084fd708066a3f Mon Sep 17 00:00:00 2001 From: Sean Robinson Date: Tue, 26 Oct 2021 12:58:24 -0700 Subject: [PATCH] Replace spaces with underscores in example program names These examples give a false impression that a space in the middle of the application name is well handled. While a space might be possible, it must be escaped in shells, i.e. a common environment for a CLI argument parser. Signed-off-by: Sean Robinson --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8df359f..fd8860f 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Simply include argparse.hpp and you're good to go. To start parsing command-line arguments, create an ```ArgumentParser```. ```cpp -argparse::ArgumentParser program("program name"); +argparse::ArgumentParser program("program_name"); ``` **NOTE:** There is an optional second argument to the `ArgumentParser` which is the program version. Example: `argparse::ArgumentParser program("libfoo", "1.9.0");` @@ -49,7 +49,7 @@ Here's an example of a ***positional argument***: #include int main(int argc, char *argv[]) { - argparse::ArgumentParser program("program name"); + argparse::ArgumentParser program("program_name"); program.add_argument("square") .help("display the square of a given integer")