[PATCH 0/4]: Show commands aliases and global options in help
Thomas Arendsen Hein
thomas at intevation.de
Sun Jul 24 12:57:36 CDT 2005
* Goffredo Baroncelli <kreijack at aliceposta.it> [20050724 12:24]:
> the four patches which follow this email permit to hg to show the
> commands aliases and the global options when the 'hg help' command
> are used with the '-v' switch.
>j
> Example:
>
> $ hg help -v
> Mercurial version unknown
>
> Copyright (C) 2005 Matt Mackall <mpm at selenic.com>
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> global options:
>
> -v --verbose
> verbose mode
> --debug
> debug mode
> -q --quiet
> quiet mode
> --profile
> profile
> -R --repository
> repository root directory
> --traceback
> print traceback on exception
> -y --noninteractive
> run non-interactively
> --version
> output version information and exit
>
> hg commands:
>
> add:
> add the specified files on the next commit
> addremove:
> add all new files, delete all missing files
> [...]
> identify, id:
> print information about the working copy
> [...]
I don't know if this isn't too verbose if you only want to find out
about the otherwise hidden commands.
Alternatively there should be another way to list all commands (like
current 'hg help -v') without having the display flooded with two
lines per command or global option?
Maybe 'hg help all|commands' to list all commands in the current way
and with -v showing global options and aliases?
By the way, I think the short help should include the name and
version of Mercurial, too, unless '-q' is used. Any objections?
Thomas
--
Email: thomas at intevation.de
http://intevation.de/~thomas/
More information about the Mercurial
mailing list