<commit_before># Ahoy

[![Build Status](https://travis-ci.org/quittle/ahoy.svg?branch=master)](https://travis-ci.org/quittle/ahoy)

Ahoy is a class-based argument parser for C++.  Its aim is to be simple and lightweight without all
the confusing bits that macros bring in or extra depenencies like Boost's program_options.

## Classes

All classes live in the `ahoy` namespace.

* `ahoy::Parser` - The main class were parameters are defined and then used to parse the arguments
                   passed into the `main(int, char**)` method.rameters passed into `Parser`.
* `ahoy::Parameter` - Represents a single argument for the program. Parameter instances may be
                      re-used
* `ahoy::Option` subclasses - Flags for `ahoy::Parameter`s to specify how a parameter works.

## Example
``` cpp
#include <iostream>
#include <set>
#include <string><commit_msg>Migrate README references to travis-ci.com<commit_after># Ahoy

[![Build Status](https://travis-ci.com/quittle/ahoy.svg?branch=master)](https://travis-ci.com/quittle/ahoy)

Ahoy is a class-based argument parser for C++.  Its aim is to be simple and lightweight without all
the confusing bits that macros bring in or extra depenencies like Boost's program_options.

## Classes

All classes live in the `ahoy` namespace.

* `ahoy::Parser` - The main class were parameters are defined and then used to parse the arguments
                   passed into the `main(int, char**)` method.rameters passed into `Parser`.
* `ahoy::Parameter` - Represents a single argument for the program. Parameter instances may be
                      re-used
* `ahoy::Option` subclasses - Flags for `ahoy::Parameter`s to specify how a parameter works.

## Example
``` cpp
#include <iostream>
#include <set>
#include <string>
{'fraction_non_alphanumeric': 0.10366197183098591, 'fraction_numerical': 0.0, 'mean_word_length': 3.8392370572207084, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1233258', 'n_tokens_mistral': 520, 'n_tokens_neox': 505, 'n_words': 201}