<commit_before>#include <iostream>

using namespace std;

#include <cli++/OptionManager.hpp>

using namespace clipp;

int
main(int argc, char** argv) {

	OptionManager om(argc, argv);

	int my_var = 0;
	om.option("update").required().var(&my_var).description("Update a variable.");

	try {
		cout << "my_var=" << my_var << endl;
		
		om.process();

		cout << "my_var=" << my_var << endl;
		
	} catch(clipp::error::InvalidOption& e) {
		cerr << "ERROR: " << e.what() << endl;
	} catch(clipp::error::Exception& e) {
		cerr << "ERROR: " << e.what() << endl;
	}<commit_msg>More tests.<commit_after>#include <iostream>

using namespace std;

#include <cli++/OptionManager.hpp>

using namespace clipp;

int
main(int argc, char** argv) {

	OptionManager om(argc, argv);

	string str_var = "";
	int int_var = 0;
	float float_var = 0.0;
	bool bool_var = false;

	om.option("string").required().var(&str_var).description("Update a string variable.");
	om.option("int").required().var(&int_var).description("Update a integer variable.");
	om.option("float").required().var(&float_var).description("Update a float variable.");
	om.option("bool").required().var(&bool_var).description("Update a boolean variable.");

	try {
		cout << "str_var  =" << str_var << endl;
		cout << "int_var  =" << int_var << endl;
		cout << "float_var=" << float_var << endl;
		cout << "bool_var =" << bool_var << endl;
		
		om.process();

		cout << "str_var  =" << str_var << endl;
		cout << "int_var  =" << int_var << endl;
		cout << "float_var=" << float_var << endl;
		cout << "bool_var =" << bool_var << endl;
		
	} catch(clipp::error::InvalidOption& e) {
		cerr << "ERROR: " << e.what() << endl;
	} catch(clipp::error::Exception& e) {
		cerr << "ERROR: " << e.what() << endl;
	}
{'fraction_non_alphanumeric': 0.20514285714285715, 'fraction_numerical': 0.002285714285714286, 'mean_word_length': 4.290030211480363, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '1160474', 'n_tokens_mistral': 656, 'n_tokens_neox': 614, 'n_words': 138}