Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

mirror of William Morgan's repo at git://

Added :date option type.

Parses dates with Date.parse, or Chronic if it's available.
latest commit 2f5e67c96f
Erik Ostrom eostrom authored December 10, 2008
Octocat-spinner-32 lib Added :date option type. April 01, 2009
Octocat-spinner-32 test Added :date option type. April 01, 2009
Octocat-spinner-32 www add blog link to index.html October 23, 2008
Octocat-spinner-32 FAQ.txt remove outdated FAQ entry October 21, 2008
Octocat-spinner-32 History.txt bump to 1.13 March 16, 2009
Octocat-spinner-32 Manifest.txt updated January 30, 2007
Octocat-spinner-32 README.txt minor README tweaks January 30, 2009
Octocat-spinner-32 Rakefile fuck you rdoc, and fuck you rake October 23, 2008
Octocat-spinner-32 release-script.txt update release script October 22, 2008
== trollop

by William Morgan (wmorgan-trollop at the masanjin dot nets or

Main page:

Release announcements and comments:

Documentation quickstart: See Trollop::options (for some reason rdoc isn't
linking that; it's in the top right of the screen if you're browsing online)
and then Trollop::Parser#opt. Also see the examples at


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.


- 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.


* gem install trollop


Copyright (c) 2008 William Morgan. Trollop is distributed under the same terms as Ruby.
Something went wrong with that request. Please try again.