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::options 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
···
--
William <wmorgan-ruby-talk@masanjin.net>