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

Michael Ellerman michael at ellerman.id.au
Sat Jun 17 09:49:54 BST 2006


On 6/17/06, John Arbash Meinel <john at arbash-meinel.com> wrote:
> Robert Widhopf-Fenk wrote:
> > On Friday, June 9, 2006 at 06:12:03, Robert Widhopf-Fenk wrote:
> > [...]
> >>> So I think it shouldn't require -v to see which plugin a command
> >>> comes from, that should be the default behaviour IMHO.
> >> If other vote for this I will strip down the patch to only
> >> listing the plugin name, but without adding new options.
> >
> > Here is the simple one.
> >
> > Robert
>
> Is it better to put this information at the top or bottom (for the full
> help). It's kind of nice to have the first piece of information be
> 'usage' without the extra blank space.
>
> Otherwise, I think I like the look of this.

I took Robert's patched and re-jiggered it a bit, plus I added a test.
Output looks like:

concordia ~/src/bzr/branches/mpe$ ./bzr help diff
usage: bzr diff [FILE...]
aliases: di, dif

(From plugin "difftools")

Show differences in working tree.

concordia ~/src/bzr/branches/mpe$ ./bzr help commands
...
bzr diff [FILE...]
        (From plugin "difftools")
        Show differences in working tree.

Bundle attached, or it's at http://michael.ellerman.id.au/bzr/branches/mpe

cheers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plugin-help.bundle.patch
Type: text/x-patch
Size: 4758 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060617/b9fecc28/attachment.bin 


More information about the bazaar mailing list