<commit_before><commit_msg>Add the commandline options example from the README to examples<commit_after>extern crate getopts;
extern crate knob;

use getopts::optopt;
use knob::Settings;

fn main() {
    let mut settings = Settings::new();
    settings.opt(optopt("p", "port", "the port to bind to", "4000"));
    settings.opt(optopt("e", "environment", "the environment to run in", ""));
    let errors = settings.load_os_args();
    if errors.is_some() {
        println!("{}", settings.usage("Try one of these:"));
    }
}
{'fraction_non_alphanumeric': 0.1580952380952381, 'fraction_numerical': 0.007619047619047619, 'mean_word_length': 4.479166666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5978348', 'n_tokens_mistral': 167, 'n_tokens_neox': 159, 'n_words': 50}