comparison makeitso/python_package/tests/test.py @ 126:ea3225facbcf

add a description to the OptionParser
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 25 May 2011 09:10:57 -0700
parents 19ffc278e35c
children 829b7f528483
comparison
equal deleted inserted replaced
125:19ffc278e35c 126:ea3225facbcf
38 return results 38 return results
39 39
40 def main(args=sys.argv[1:]): 40 def main(args=sys.argv[1:]):
41 41
42 # parse command line args 42 # parse command line args
43 parser = OptionParser() 43 parser = OptionParser(description=__doc__)
44 parser.add_option('--raise', dest='raise_on_error', 44 parser.add_option('--raise', dest='raise_on_error',
45 default=False, action='store_true', 45 default=False, action='store_true',
46 help="raise on first error") 46 help="raise on first error")
47 parser.add_option('--report-first', dest='report_first', 47 parser.add_option('--report-first', dest='report_first',
48 default=False, action='store_true', 48 default=False, action='store_true',