<commit_before>argparse4s is an argument parsing library for Scala built on
[argparse4j][], which in turn is inspired by the Python `argparse`
module.

[argparse4j]: http://argparse4j.sourceforge.net

# Using argparse4s

The main entry point for argparse4s is the `Command` trait. To use argparse4s,
create an object extending `Command` whose `main` method calls `Command`'s
`run(Array[String])` method. It will then parse the arugments, prepare an
`ExecutionContext`, and pass it to your command's `run()` method.

Options are defined using the `option`, `flag`, and `argument` methods (from
`CommandLike`). These methods return objects representing the arguments which
can in turn be used to set additional parameters (defaults, help messages,<commit_msg>Add SBT instructions.<commit_after>argparse4s is an argument parsing library for Scala built on
[argparse4j][], which in turn is inspired by the Python `argparse`
module.

[argparse4j]: http://argparse4j.sourceforge.net

# Using argparse4s

First, add argparse4s to your project dependencies. In SBT:

    libraryDependencies += "net.elehack.argparse4s" %% "argparse4s" % "0.2"

The main entry point for argparse4s is the `Command` trait. To use argparse4s,
create an object extending `Command` whose `main` method calls `Command`'s
`run(Array[String])` method. It will then parse the arugments, prepare an
`ExecutionContext`, and pass it to your command's `run()` method.

Options are defined using the `option`, `flag`, and `argument` methods (from
`CommandLike`). These methods return objects representing the arguments which
can in turn be used to set additional parameters (defaults, help messages,
{'fraction_non_alphanumeric': 0.08795180722891566, 'fraction_numerical': 0.01144578313253012, 'mean_word_length': 5.539370078740157, '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': '1576404', 'n_tokens_mistral': 471, 'n_tokens_neox': 461, 'n_words': 212}