[PATCH] add -e/--extension switch to help command to display extension help text only

Nicolas Dumazet nicdumz at gmail.com
Sun Dec 13 17:46:58 CST 2009


2009/12/13 Henri Wiechers <hwiechers at gmail.com>:
> # 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 agree there's an issue here; but I'm not sure help -e can really help here :s

What about:
hg help extensions <ext-name>
?
I also noticed that "hg help ext" is not resolving to "extensions".
Any reason for this? It might be interesting to match ^ext*, so the
command can be the shorter hg help ext <ext-name>

My first idea here was in my opinion weaker: "hg help ext<ext-name>",
"ext" standing as a suffix for extensions.


Whatever option we pick, I'd like "hg help extensions" to explain how
to access extension help: it looks like a common usage pattern to me
(first look at generic extensions help, then find more about a
specific extension)

-- 
Nicolas Dumazet — NicDumZ


More information about the Mercurial-devel mailing list