GLI 2.0 is out! GLI is the best way to make a “command-suite” command line interface. If you need to make a complex
command line app that takes subcommands, like
gem, GLI is the most powerful and easy-to-use way to do that.
trollop, GLI sits on top of
OptionParser, giving you access to its powerful features. GLI-powered apps have
fully-featured help systems - you just need to provide a bit of documentation. There’s also support for a basic application
lifecycle and with almost no code, you have an awesome, well-behaved command-line app that’s easy to write, easy to test, easy to
use, and easy to maintain.
- Arbitrarily deep sub- and sub-sub-commands. Think
git remote add.
OptionParser, meaning your command-line options can benefit from type conversions, validation checks, negatability, and all the other awesome that comes from
- Whole new help system that shows command-line invocation examples, generated from your code.
- Bootstrapped apps now include an
.rvmrcand a shell for acceptance testing via aruba.
- More flexible documentation-generation systems to allow any format of documentation to be generated (currently, only RDoc is implemented).
- More easily structure your code in external files
- Lots of bug-fixes
> gem install gli > gli init your-new-app