| Short description: |
Command Line Parser mini-DSL |
| Category: |
Library/Utility |
| Status: |
alpha |
| Created: |
2006-05-26 19:53:01 GMT |
| Last update: |
2006-05-31 20:41:15 GMT |
| Owner: |
doeklund
(Projects of this owner) |
| Homepage: |
http://optiflag.rubyforge.org/ |
| Download: |
http://rubyforge.org/frs/?group_id=1718
|
| License: |
Ruby's |
| Dependency: |
|
| Description: |
Project Full Name: Optiflag Command Line Parser Library
Submitted Description: Optiflag is yet-another library for handling command-line options in an arbitrary Ruby program. It can be used as a replacement for any of the following libraries:
*cmdparser
*getopt-declare
*optparse
*getopt
*getoplong
*CommandLine::OptionParse
Optiflag has three design goals:
1) Ease of use
2) Ease of use
3) Ease of use
Optiflag is modeled after the declarative programming model of Rake, and as such could be considered a mini-language of its own.
Optiflag features:
* declarative required,optional flags
* change arity of flags (default is 1)
* force argument order
* validate flag values (by set or by regular expression)
* auto-generated help and error messages
* short and long-form switches
* ability to change symbol switch (e.g. '' for MSDOS switches)
* character flags (e.g. 'tar -xvf' == 'tar -x -v -f')
* declarative usage and help flags
If Optiflag is doing what it should, the user (a programmer) should feel that she/he is not coding, but specifying.
|
| Versions: |
[0.6.5 (2007-04-18)]
[0.6 (2006-08-27)]
[0.5 (2006-08-19)]
[0.4 (2006-07-12)]
[0.3 (2006-05-31)]
[0.0.2 (2006-05-26)]
|