[PATCH]: Optional explanation for options

Martin Pool martinpool at gmail.com
Mon Sep 12 06:11:04 BST 2005


Thanks for starting a discussion of this Magnus.  I think I'd like to
have command objects say that they either take a standard option, or
define their own options.

so

  takes_options = ['verbose', 
     Option('special', help='make this command more special'),
     Option('niceness', paramtype=int)]

If it's a string, it's looked up in the global options; otherwise it's
an option object.

Then the standard options will be 

  [Option('verbose', help='display more progress messages'), 
   ...]

How's that?
How's that?

-- 
Martin




More information about the bazaar mailing list