[ANN] Trollop 1.8.1 released

W

William Morgan

Trollop version 1.8.1 has been released! http://trollop.rubyforge.org

## DESCRIPTION

Trollop is a commandline option parser for Ruby that just gets out of your
way. One line of code per option is all you need to write. For that, you get
a nice automatically-generated help page, robust option parsing, command
subcompletion, and sensible defaults for everything you don't specify.

Look:

opts = Trollop::eek:ptions do
opt :monkey, "Use monkey mode"
opt :goat, "Use goat mode", :default => true
opt :num_limbs, "Set number of limbs", :default => 4
end

That's it. And opts is a hash and you do whatever you want with it.
Trivial. You don't have to mix option processing code blocks with the
declarations. You don't have to make a class for every option (what is this,
Java?). You don't have to write more than 1 line of code per option.

Now, with subcommand support!

## RECENT CHANGES

== 1.8.1 / 2008-06-24

* Bugfix for short option autocreation
* More aggressive documentation

== 1.8 / 2008-06-16

* Sub-command support via Parser#stop_on
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top