<commit_before>#OptParser

CLI-Optionsparser for C++ inspired by Rubys OptionParser class

## Usage
First of all include `OptParser.h`  
the following sample code should make it clear:  
```c++

OptParser *options = new OptParser();
options->setHelpText("this is an example app to demonstrate the usage of OptParser");
options->setOption("required_option", "r", "required-option", "This is a required option you must specify", true);
options->setOption("option_default", "d", "default-option", "This is an option with a default value", false, "default value");
options->setOption("option", "o", "option", "This is a normal option");
if(!options->parseOptions(argc, argv)){
	return EXIT_FAILURE;
}

string required_option = options->getValue("required_option");
string option_default  = options->getValue("option_default");	// returns "default value" if not specified
string option          = options->getValue("option");			// return an empty string if not specified

```

## Changelog

### 1.0.0 (2014-06-24)
initial Version. 

### 1.0.1 (2014-06-24)

- bugfix: use const for argc in parseOptions
- use 3-colum layout for usage. Short-Opts and long-opts are now prettier aligned
- added `example.cpp` with usage examples
<commit_msg>added sample output<commit_after>#OptParser

CLI-Optionsparser for C++ inspired by Rubys OptionParser class

## Usage
First of all include `OptParser.h`  
the following sample code should make it clear:  
```c++

OptParser *options = new OptParser();
options->setHelpText("this is an example app to demonstrate the usage of OptParser");
options->setOption("required_option", "r", "required-option", "This is a required option you must specify", true);
options->setOption("option_default", "d", "default-option", "This is an option with a default value", false, "default value");
options->setOption("option", "o", "option", "This is a normal option");
if(!options->parseOptions(argc, argv)){
	return EXIT_FAILURE;
}

string required_option = options->getValue("required_option");
string option_default  = options->getValue("option_default");	// returns "default value" if not specified
string option          = options->getValue("option");			// return an empty string if not specified

```

## Sample output

```
error: not enought options given
this is an example app to demonstrate the usage of OptParser
	-ro,  	--required-option 	required_option (required) This is a required option you must specify 
	-d,   	--default-option  	option_default This is an option with a default value default: default value
	-o,   	--option          	option This is a normal option 
```

## Changelog

### 1.0.0 (2014-06-24)
initial Version. 

### 1.0.1 (2014-06-24)

- bugfix: use const for argc in parseOptions
- use 3-colum layout for usage. Short-Opts and long-opts are now prettier aligned
- added `example.cpp` with usage examples

{'fraction_non_alphanumeric': 0.12193412754029433, 'fraction_numerical': 0.0161177295024527, 'mean_word_length': 4.631163708086785, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '696173', 'n_tokens_mistral': 846, 'n_tokens_neox': 812, 'n_words': 314}