[Python-checkins] python/dist/src/Tools/scripts logmerge.py,1.10,1.11
bwarsaw@users.sourceforge.net
bwarsaw@users.sourceforge.net
Sat, 19 Apr 2003 17:59:26 -0700
Update of /cvsroot/python/python/dist/src/Tools/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv23353
Modified Files:
logmerge.py
Log Message:
Finally added a -h option to print the module docstring and exit. ;)
Index: logmerge.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/scripts/logmerge.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** logmerge.py 7 Jan 2003 16:46:24 -0000 1.10
--- logmerge.py 20 Apr 2003 00:59:24 -0000 1.11
***************
*** 29,35 ****
not very useful.)
XXX This code was created by reverse engineering CVS 1.9 and RCS 5.7
from their output.
-
"""
--- 29,36 ----
not very useful.)
+ -h prints this message and exits.
+
XXX This code was created by reverse engineering CVS 1.9 and RCS 5.7
from their output.
"""
***************
*** 44,48 ****
reverse = 0
branch = None
! opts, args = getopt.getopt(sys.argv[1:], "trb:")
for o, a in opts:
if o == '-t':
--- 45,49 ----
reverse = 0
branch = None
! opts, args = getopt.getopt(sys.argv[1:], "trb:h")
for o, a in opts:
if o == '-t':
***************
*** 52,55 ****
--- 53,59 ----
elif o == '-b':
branch = a
+ elif o == '-h':
+ print __doc__
+ sys.exit(0)
database = []
while 1: