[PATCH] doc: Capitalize the "options" header of mercurial commands
Javi Merino
cibervicho at gmail.com
Sat Feb 5 14:51:51 UTC 2011
Hi, this is very cosmetic, but Jonathan Nieder pointed out in the Debian
BTS [0] that in hg's manpage "option lists [of mercurial commands] all
start with the heading 'options:', with
a lowercase 'o'. Wouldn't a capital 'O' be more appropriate?". Below
you can find a patch that does that. Please apply it if you feel it is
appropriate.
[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=611419
Thanks,
Javi (Vicho)
# HG changeset patch
# User Javi Merino <cibervicho at gmail.com>
# Date 1296916645 0
# Branch stable
# Node ID cecec69b66c18a5f25700824fa526e76d45a2637
# Parent 26c674a6ee2627764705bfb89f027fdf369ba652
doc: Capitalize the "options" header of mercurial commands
diff --git a/doc/gendoc.py b/doc/gendoc.py
--- a/doc/gendoc.py
+++ b/doc/gendoc.py
@@ -143,7 +143,7 @@ def commandprinter(ui, cmdtable, section
opt_output = list(d['opts'])
if opt_output:
opts_len = max([len(line[0]) for line in opt_output])
- ui.write(_("options:\n\n"))
+ ui.write(_("Options:\n\n"))
for optstr, desc in opt_output:
if desc:
s = "%-*s %s" % (opts_len, optstr, desc)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20110205/394ed85f/attachment.asc>
More information about the Mercurial-devel
mailing list