Skip to content
/ cmdparse Public
forked from gettalong/cmdparse

Advanced command line parser supporting nested commands

License

Notifications You must be signed in to change notification settings

ollym/cmdparse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmdparse - an advanced command line parser using optparse which has support for commands

Copyright (C) 2004 Thomas Leitner

= Description

Some new programs use a "command style" command line. Examples for such programs are the "svn"
program from Subversion and the "gem" program from Rubygems. The standard Ruby distribution has no
library to create programs that use such a command line interface.

This library, cmdparse, can be used to create such a command line interface. Internally it uses
optparse to parse options and it provides a nice API for specifying commands.


= Dependencies

 optparse - part of the standard Ruby 1.8 distribution, so nothing to do here


= Installation

 $ ruby setup.rb config
 $ ruby setup.rb setup
 $ ruby setup.rb install

Or you could use Rake and substitute the above commands with this:
 $ rake install

Or you could install cmdparse the "GEM way":
 $ gem install cmdparse


= Documentation

You can build the documentation by invoking
 $ rake doc

This builds the API and the additional documentation. The additional documentation needs webgen
0.3.1 (webgen.rubyforge.org) for building.


= Example

There is an example of how to use cmdparse in the +test.rb+ file.


= Contact

Author: Thomas Leitner
* Web: http://cmdparse.rubyforge.org
* e-Mail: t_leitner@gmx.at
* GPG Key-Id: 0xD942E7F6

About

Advanced command line parser supporting nested commands

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%