From a0a2e76d22d2901a472ab9db47f638ddb3205851 Mon Sep 17 00:00:00 2001 From: Pranav Srinivas Kumar Date: Mon, 1 Apr 2019 20:09:19 -0400 Subject: [PATCH] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1376431..af68567 100644 --- a/README.md +++ b/README.md @@ -198,10 +198,11 @@ c = {0.0, 0.0} Here's what's happening: * We have three optional arguments ```-a```, ```-b``` and ```-c```. * ```-a``` and ```-b``` are toggle arguments. -* ```-c``` requires 2 floating point numbers from the command-line. You can specify how many inputs to expect using ```nargs```. +* ```-c``` requires 2 floating point numbers from the command-line. * argparse can handle compound arguments, e.g., ```-abc``` or ```-bac``` or ```-cab```. This only works with short single-character argument names. - ```-a``` and ```-b``` become true. - argv is further parsed to identify the inputs mapped to ```-c```. + - If argparse cannot find any arguments to map to c, then c defaults to {0.0, 0.0} as defined by ```.default_value``` ## Further Examples