Files
argparse/README.md
Carl Pearson 9849273411 first commit
2020-03-24 08:18:43 -05:00

32 lines
871 B
Markdown

# argparse
Simple single-file header-only CLI option parsing for C++.
No subcommands, grouped commands.
## Getting Started
Download the latest [`argparse.hpp`](www.google.com) and include it in your project.
## Features
- [x] allow (default) / disallow (`Parser::no_unrecognize()`) unrecognized options and flags
- [x] optional/required (`PosnlBase::required()`) positional arguments
- [x] flags with `-s`, `--long-flag` formats
- [x] options with `--long-opt val` format
- [x] positional arguments
- [x] `--` to stop parsing options and flags
- [x] modify `argc`/`argv` (disable with `Parser::no_consume()`)
- Option Types
- [x] `int`
- [x] `size_t`
- [x] `float`
- [x] `double`
- [x] `std::string`
## Roadmap
- [ ] examples
- [ ] Help string output
- [ ] support --long-option=value
- [ ] have the last positional argument fill a vector with remaining