[PATCH 1/4]: Show commands aliases and global options in help
Goffredo Baroncelli
kreijack at aliceposta.it
Sun Jul 24 05:21:39 CDT 2005
# HG changeset patch
# User kreijack at inwind.REMOVEME.it
# Node ID 53ed816554443fdbeebe3643e10e623ce14050c9
# Parent 0de22301208613404aa3bea7868793e4330d83b0
'hg help -v' shows global options
diff -r 0de223012086 -r 53ed81655444 mercurial/commands.py
--- a/mercurial/commands.py Sat Jul 23 19:11:49 2005
+++ b/mercurial/commands.py Sun Jul 24 10:03:04 2005
@@ -292,6 +292,20 @@
show_version(ui)
ui.write('\n')
if ui.verbose:
+ ui.write("global options:\n\n")
+ for s, l, d, c in globalopts:
+ opt = ' '
+ if s:
+ opt = opt + '-' + s + ' '
+ if l:
+ opt = opt + '--' + l + ' '
+ if d:
+ opt = opt + '(' + str(d) + ')'
+ ui.write(opt, "\n")
+ if c:
+ ui.write(' %s\n' % c)
+ ui.write("\n")
+
ui.write('hg commands:\n\n')
else:
ui.write('basic hg commands (use "hg help -v" for more):\n\n')
--
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack AT inwind.it>
Key fingerprint = CE3C 7E01 6782 30A3 5B87 87C0 BB86 505C 6B2A CFF9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.selenic.com/pipermail/mercurial/attachments/20050724/89436cf0/attachment.pgp
More information about the Mercurial
mailing list