From 61e9b644c05642a03873f4ceaffd09f6f6e68bda Mon Sep 17 00:00:00 2001 From: Pranav Srinivas Kumar Date: Tue, 10 Sep 2019 10:15:15 -0500 Subject: [PATCH] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cb2817f..f28790e 100644 --- a/README.md +++ b/README.md @@ -124,9 +124,9 @@ Here's what's happening: There are scenarios where you would like to make an optional argument ***required***. As discussed above, optional arguments either begin with `-` or `--`. You can make these types of arguments required like so: ```cpp - program.add_argument("-o", "--output") - .required() - .help("specify the output file."); +program.add_argument("-o", "--output") + .required() + .help("specify the output file."); ``` If the user does not provide a value for this parameter, an exception is thrown. @@ -134,10 +134,10 @@ If the user does not provide a value for this parameter, an exception is thrown. Alternatively, you could provide a default value like so: ```cpp - program.add_argument("-o", "--output") - .default_value(std::string("-")) - .required() - .help("specify the output file."); +program.add_argument("-o", "--output") + .default_value(std::string("-")) + .required() + .help("specify the output file."); ``` ### Negative Numbers