From: Jim Freeze Date: 2005-06-25T07:31:17+09:00 Subject: Re: [ANN] Application-0.6.0 * Jim Weirich [2005-06-25 05:58:51 +0900]: > On Friday 24 June 2005 04:04 pm, Jim Freeze wrote: > > > * make a certain set of options enabled by default: man page, > > > version, usage, etc. �That way all applications written in this > > > framework will immediately have this commonality. �And then > > > have a way for the application class to delete this > > > functionality if it isn't wanted for some strange reason. > > > > Hmm, haven't thought about that, but sounds reasonable. > > One way to handle this is to provide a CommandLine::BasicApplication with no > defaults and also CommandLine::Application with the mentioned goodies. This > allows people to fall back to a bare bones version with little effort. > > Another approach is to provide additional functionality in modules (or > something module-like). Include a module and get several related features. Both are good suggestions. Thanks. Using that, I would make the following equivalent: class App < CommandLine::BasicApplication standard_options end class App < CommandLine::Application end The is nice because I don't have to figure out a way to let the user remove options. -- Jim Freeze