[PATCH] add -e/--extension switch to help command to display extension help text only
Martin Geisler
mg at lazybytes.net
Sun Dec 13 09:15:27 CST 2009
Adrian Buehlmann <adrian at cadifra.com> writes:
> On 13.12.2009 13:00, Henri Wiechers wrote:
>> # HG changeset patch
>> # User Henri Wiechers <hwiechers at gmail.com>
>> # Date 1259490173 -7200
>> # Node ID c0c06fc4d0bff2c1b1b9a9e75ac6ea5814d2d7e6
>> # Parent dfc3ed37d58d921428a6a684001e4f708c445a52
>> add -e/--extension switch to help command to display extension help text only
>>
>> Some extensions (such as attic) have commands/aliases that have the
>> same name as the extension itself. This means that the extension help
>> is inaccessible since 'hg help <extension-name>' will display the
>> command/alias' help instead. This patch remedies that by adding a
>> switch that forces help to only display the help text for extensions.
I like this, it's something we should have added a while ago. How
difficult would it be to make 'hg help rebase' print out "use 'hg help
-e rebase' to see overall help for the extension"? Otherwise I fear that
people wont discover the extension help.
> In case you didn't know:
>
> You can name the extension in your hgrc as you like, e.g.
>
> [extensions]
> hgattic = /path/to/attic.py
[...]
> So it is more a question of (bad?) convention how to name extensions
> in the hgrc
The situation is worse with extensions from hgext such as rebase and
bookmarks. For those, the suggested way of enabling them is to add
[extensions]
rebase =
bookmarks =
to you hgrc file.
--
Martin Geisler
VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20091213/070edc37/attachment.pgp>
More information about the Mercurial-devel
mailing list