I have released Trollop 1.15. This release is dedicated to my fellow
old-fashioned, out-moded throwbacks who still use the commandline
clicking on their webapp.
Trollop is a commandline option parser for Ruby that just gets out of
One line of code per option is all you need to write. For that, you get
automatically-generated help page, robust option parsing, subcommand
and sensible defaults for everything you don’t specify.
It’s one file. If you don’t want to gem install it, just copy the damn
into your lib/ directory and get off my lawn.
- Dirt-simple usage.
- Sensible defaults. No tweaking necessary, much tweaking possible.
- Support for long options, short options, short option bundling, and
automatic type validation and conversion.
- Support for subcommands.
- Automatic help message generation, wrapped to current screen width.
- Lots of unit tests.
- A burning desire to write less code.
== CHANGES in 1.15
- Don’t raise an exception when out of short arguments (thanks to Rafael
Sevilla for pointing out how dumb this behavior was).