00076 :
00077
00078 import getopt
00079
00080 try:
00081 opts, args = getopt.getopt(sys.argv[1:], "c:o:", ['checkDir=', 'outFile='])
00082
00083 checkDir = '.'
00084 outFile = None
00085 for opt, arg in opts :
00086
00087 if opt in ('-c', "--checkDir", ):
00088 checkDir = arg
00089
00090 if opt in ('-o', "--outFile", ):
00091 outFile = arg
00092
00093 ta = TreeAnalyzer(outFile)
00094 ta.analyzePath(checkDir)
00095 ta.show()
00096
00097 except getopt.GetoptError, e:
00098 print "unknown option", str(e)
00099 sys.exit(2)