Trollop 1.8.1 released

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

Reformatted excerpts from wmorgan-ruby-talk’s message of 2008-06-24:

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

Aaaand obligatory blog post detailing subcommand usage:
Играть в игровые автоматы на деньги в Украине - Игровые автоматы

On Wed, Jun 25, 2008 at 12:05 AM, William M.
[email protected] wrote:

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

RECENT CHANGES

  • More aggressive documentation

Should we be afraid?

M.

On Wed, Jun 25, 2008 at 6:06 PM, Matt M. [email protected]
wrote:

On Wed, Jun 25, 2008 at 12:05 AM, William M.
[email protected] wrote:

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

  • More aggressive documentation

Should we be afraid?

Nyah… from what I’ve heard it’s just a bunch of trollop anyway…