Update README.md

This commit is contained in:
Pranav 2020-05-15 19:12:43 -05:00 committed by GitHub
parent f3e65f69a9
commit 06649254b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,8 @@ To start parsing command-line arguments, create an ```ArgumentParser```.
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");`
To add a new argument, simply call ```.add_argument(...)```. You can provide a variadic list of argument names that you want to group together, e.g., ```-v``` and ```--verbose```
```cpp