Skip to content

Commit

Permalink
Fixes issue #8
Browse files Browse the repository at this point in the history
  • Loading branch information
p-ranav authored May 2, 2019
1 parent 7c9f83c commit 374c70e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ To start parsing command-line arguments, create an ```ArgumentParser```.
argparse::ArgumentParser program("program name");
```
Argparse supports a variety of argument types including positional, optional, and compound arguments.
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
program.add_argument("foo");
program.add_argument("-v", "--verbose"); // parameter packing
```

Argparse supports a variety of argument types including positional, optional, and compound arguments. Below you can see how to configure each of these types:

### Positional Arguments

Expand Down

0 comments on commit 374c70e

Please sign in to comment.