From: Rahul Kumar Date: 2010-12-08T21:04:14+09:00 Subject: Re: ruby.cmd.line mailing list for rubyist command line / console fanatics Deepak Kannan wrote in post #967108: > hi, > @rahul would subcommand be something like git cli, it yes it would be > a good idea to add that in the README as it would make it easy to > identify. Also what does lazy loading of commands mean and how does it > play with ARGF? > > cheers, > deepak https://github.com/rkumar/subcommand I am quoting from the home page. A tiny wrapper over ruby’s awesome OptionParser (standard) which gives easy facility of subcommands. It has a similar interface to git and prints subcommands summary as well. Options parsers are lazy-loaded thanks to a suggestion and sample code by Robert Klemme on ruby-forum.org. If your program already uses OptionParser, then one merely needs to add a line above each option declaration — no rewriting required since all OptionParser syntax is valid syntax for `subcommand`. This wrapper adds the `description` attr to what OptionParser already provides. -------------------- I have not looked at the code for some months, will have to do so to answer your question properly. -- Posted via http://www.ruby-forum.com/.