From 48c6365ef58c56441fe15ff6c713bd0457155121 Mon Sep 17 00:00:00 2001 From: Pranav Srinivas Kumar Date: Sun, 31 Mar 2019 17:35:34 -0400 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index ba5c9ec..f67b85c 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,15 @@ Here's what's happening: - argv is further parsed to identify the inputs mapped to ```-c```. * Using ```-cab``` will throw an error since argparse expects two inputs for the argument ```-c```. +Notice how argparse is able to quietly and peacefully return an std::vector when asked for it. + +```cpp +auto c_vector = program.get>("-c"); +auto c_list = program.get>("-c"); +``` + +Both of these above statements will work. Argparse has specializations implemented for both ```std::vector``` and ```std::list```. + ## Examples ### Positional Arguments