Django

Code

Changeset 2336

Show
Ignore:
Timestamp:
02/18/06 14:08:20 (2 years ago)
Author:
adrian
Message:

Added usage to unit-test OptionParser?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/runtests.py

    r2034 r2336  
    207207    from optparse import OptionParser 
    208208    usage = "%prog [options] [model model model ...]" 
    209     parser = OptionParser(
     209    parser = OptionParser(usage=usage
    210210    parser.add_option('-v', help='How verbose should the output be? Choices are 0, 1 and 2, where 2 is most verbose. Default is 0.', 
    211211        type='choice', choices=['0', '1', '2'])