7 from optparse import OptionParser
9 parser = OptionParser()
10 parser.add_option("-q", "--quiet",
11 action="store_false", dest="verbose", default=True,
12 help="don't print status messages to stdout")
14 parser.add_option("-C", "--content",
15 action="store_true", dest="docontent", default=False,
16 help="Disect content, rather than the file.")
18 (options, args) = parser.parse_args()
20 import content_index, std_index
22 from content_index import cntIndex
30 res = cntIndex.doIndex(content, fname, None, None, True)
32 res = cntIndex.doIndex(None, fname, None, fname,True)
39 tb_s = reduce(lambda x, y: x+y, traceback.format_exception( sys.exc_type, sys.exc_value, sys.exc_traceback))