[PATCH] verbose help (show plugin providing a cmd and hidden cmds)

Michael Ellerman michael at ellerman.id.au
Mon Jun 19 00:32:53 BST 2006


On Sun, 2006-06-18 at 08:49 -0500, John Arbash Meinel wrote:
> Michael Ellerman wrote:
> 
> ...
> 
> >> > +def print_command_plugin(cmd_object, outfile, format):
> >> > +    plugin_name = cmd_object.plugin_name()
> >> > +    if plugin_name is not None:
> >> > +        print >>outfile, format % ('(From plugin "%s")' % plugin_name)
> >> > +
> >> > +
> 
> Sorry I missed this earlier, but we should really have a doc string on
> print_command_plugin. Otherwise, +1 from me.

Ok, I added a docstring for print_command_plugin() and
Command.plugin_name().

Updated version ('cause my mpe branch has another commit on it now):
http://michael.ellerman.id.au/bzr/branches/show-plugin/

cheers

-- 
Michael Ellerman
IBM OzLabs

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060619/7b81ccd5/attachment.pgp 


More information about the bazaar mailing list