From: "R.. Kumar" Date: 2010-06-21T04:03:00+09:00 Subject: Re: State of the union for Ruby CLI libraries? R.. Kumar wrote: > Robert Klemme wrote: > >> >> I would modify that approach because it has the drawback of wasting CPU >> cycles creating all the unnecessary OptionParsers for subcommands that >> are not found in ARGV. Rather, I'd do something more lazy, e.g. >> Robert, I have updated my gist to make it lazy http://gist.github.com/446014 However, there is one issue. When typing help on the main program such as $ ruby prog help ... Commands are: foo : does foo baz : does baz I was being shown the subcommands and their descriptions, since I had parsed all the optionparsers. Now that I only parse if a particular command is called, i cannot get the description of the command. (search XXX in source). Is there any way of doing this ? Regards RK -- Posted via http://www.ruby-forum.com/.