From: Bernard Lambeau Date: 2011-01-11T08:36:29+09:00 Subject: Re: [ANN] quickl 0.2.0 Released --0016363b804c9171e50499866bd0 Content-Type: text/plain; charset=ISO-8859-1 Hi! * #options could return the OptionParser object, so as to allow > #options.on directly. > Well, I want options to be installed on a class basis while being parsed by a command *instance*. This is the only hack I've imagined so far. I would be interested in any alternative one could propose that fit this double constraint. Any idea? > * how is the delegator -> subcommand relation made ? it's maybe best > if it's explicit. > The relation is made through introspection of ruby namespacing (a delegate simple command is a class defined under a delegator namespacing). I could indeed propose additional features to override this proposed behavior. > * if a delegator has a global option like --verbose, is @verbose = > true going to be set in the subcommand ? > Not directly. But subcommands have access to a requester object (via an attr_reader), which is the delegator in such a configuration. You can access delegator.verbose. I'm still investigating the question so far... Thanks for your feedback! B --0016363b804c9171e50499866bd0--