mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Finally added a -h option to print the module docstring and exit. ;)
This commit is contained in:
parent
1aca359e89
commit
334df6c597
1 changed files with 6 additions and 2 deletions
|
@ -28,9 +28,10 @@ output to checkin messages belonging to the CVS head (trunk). (It
|
||||||
produces some output if tag is a non-branch tag, but this output is
|
produces some output if tag is a non-branch tag, but this output is
|
||||||
not very useful.)
|
not very useful.)
|
||||||
|
|
||||||
|
-h prints this message and exits.
|
||||||
|
|
||||||
XXX This code was created by reverse engineering CVS 1.9 and RCS 5.7
|
XXX This code was created by reverse engineering CVS 1.9 and RCS 5.7
|
||||||
from their output.
|
from their output.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os, sys, getopt, re
|
import os, sys, getopt, re
|
||||||
|
@ -43,7 +44,7 @@ def main():
|
||||||
truncate_last = 0
|
truncate_last = 0
|
||||||
reverse = 0
|
reverse = 0
|
||||||
branch = None
|
branch = None
|
||||||
opts, args = getopt.getopt(sys.argv[1:], "trb:")
|
opts, args = getopt.getopt(sys.argv[1:], "trb:h")
|
||||||
for o, a in opts:
|
for o, a in opts:
|
||||||
if o == '-t':
|
if o == '-t':
|
||||||
truncate_last = 1
|
truncate_last = 1
|
||||||
|
@ -51,6 +52,9 @@ def main():
|
||||||
reverse = 1
|
reverse = 1
|
||||||
elif o == '-b':
|
elif o == '-b':
|
||||||
branch = a
|
branch = a
|
||||||
|
elif o == '-h':
|
||||||
|
print __doc__
|
||||||
|
sys.exit(0)
|
||||||
database = []
|
database = []
|
||||||
while 1:
|
while 1:
|
||||||
chunk = read_chunk(sys.stdin)
|
chunk = read_chunk(sys.stdin)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue