diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-02-18 20:08:20 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-02-18 20:08:20 +0000 |
| commit | e029c9f7f8765b895ef2893cdf7fabe6dc5e9806 (patch) | |
| tree | 517b82667689ec5f1c7c5fcf311cac823ea4e895 | |
| parent | d2522e31b992aaf2707692a8a4b9778780540f34 (diff) | |
Added usage to unit-test OptionParser
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2336 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rwxr-xr-x | tests/runtests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index 969aabf617..9226361090 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -206,7 +206,7 @@ class TestRunner: if __name__ == "__main__": from optparse import OptionParser usage = "%prog [options] [model model model ...]" - parser = OptionParser() + parser = OptionParser(usage=usage) 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.', type='choice', choices=['0', '1', '2']) parser.add_option('--settings', |
