<commit_before>= Git-Like Interface Command Line Parser

Author::  <NAME> (mailto:davetron5000 at g mail dot com)
Copyright:: Copyright (c) 2009 by <NAME>
License:: Distributes under the Apache License, see LICENSE.txt in the source distro

This is a DSL you can use to create a command line interface like git, gem or svn, in that the first argument is a command, and there are global and command specific flags.

== Use

Install if you need to:

    sudo gem install gli

The simplest way to get started is to create a scaffold project

    gli init my_proj command_name other_command_name

This will create a basic scaffold project in <tt>./my_proj</tt> with:

* executable in <tt>./my_proj/bin/my_proj</tt>.  This file demonstrates most of what you need to describe your command line interface.
* an empty test in <tt>./my_proj/test/tc_nothing.rb</tt> that can bootstrap your tests
* a gemspec shell
* a README shell
* Rakefile that can generate RDoc, package your Gem and run tests

=== Example

This example demonstrates most of the features of GLI.

This sets you up to use the DSL that GLI defines:

    #!/usr/bin/ruby
    $: << File.expand_path(File.dirname(__FILE__) + '/../lib') <commit_msg>updated docs re: gemcutter<commit_after>= Git-Like Interface Command Line Parser

Author::  <NAME> (mailto:davetron5000 at g mail dot com)
Copyright:: Copyright (c) 2009 by <NAME>
License:: Distributes under the Apache License, see LICENSE.txt in the source distro

This is a DSL you can use to create a command line interface like git, gem or svn, in that the first argument is a command, and there are global and command specific flags.

== Use

Note that the latest version of this gem is hosted at [http://www.gemcutter.org], so if you haven't set it up yet, do so:

    # Only needed if you haven't used/setup Gemcutter before
    sudo gem install gemcutter
    sudo gem tumble

Install if you need to:

    sudo gem install gli

The simplest way to get started is to create a scaffold project

    gli init my_proj command_name other_command_name

This will create a basic scaffold project in <tt>./my_proj</tt> with:

* executable in <tt>./my_proj/bin/my_proj</tt>.  This file demonstrates most of what you need to describe your command line interface.
* an empty test in <tt>./my_proj/test/tc_nothing.rb</tt> that can bootstrap your tests
* a gemspec shell
* a README shell
* Rakefile that can generate RDoc, package your Gem and run tests

=== Example

This example demonstrates most of the features of GLI.

This sets you up to use the DSL that GLI defines:

    #!/usr/bin/ruby
    $: << File.expand_path(File.dirname(__FILE__) + '/../lib') 
{'fraction_non_alphanumeric': 0.07419962335216572, 'fraction_numerical': 0.006026365348399247, 'mean_word_length': 3.89134438305709, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '7002142', 'n_tokens_mistral': 815, 'n_tokens_neox': 748, 'n_words': 382}