- CMake
- git
Coming soon.
Download vt_argumentative.hpp.
Add it to you project. For example in a folder named include
.
Include the header to your .cpp file containing you main function.
#include "vt_argumentative.hpp"
// […]
int main(int argc, char** argv) {
using namespace ive;
// Define your arguments
Argumentative app(argc, argv);
// Use it…
}
For a full example check out example.cpp.
// Includes…
int main(int argc, char** argv) {
ive::Help help; // default help message.
ive::Version version("1.0.0");
ive::Argumentative app(argc, argv, { help, version });
for (auto const& arg: app) {
if (arg == version) {
std::cout << app.version();
} else {
std::cout << app.usage();
}
}
}
Run ArgumentativeTests
This library is in beta. Please avoid using it in production. Or do so at your own discretion.
- Fork
- Code (if you add a feature don't forget to write tests for it)
- Test
- Add and commit (if possible: each file individually)
- Push to your remote
- Make a pull request on this repo.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Anthony Capobianco - Initial work - viraltaco_
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see MIT for more information.
- PurpleBooth for their
README.md
template - Viatorus for quom for the single header tool.
- The LLVM Foundation for clang-format