Django

Code

Changeset 6591

Show
Ignore:
Timestamp:
10/21/07 17:06:52 (11 months ago)
Author:
mtredinnick
Message:

Fixed "django-admin.py --version" so that it doesn't print the version string
twice.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/management/__init__.py

    r6528 r6591  
    218218        # 'django-admin.py --help' to work, for backwards compatibility. 
    219219        elif self.argv[1:] == ['--version']: 
    220             print django.get_version() 
     220            # LaxOptionParser already takes care of printing the version. 
     221            pass 
    221222        elif self.argv[1:] == ['--help']: 
    222223            sys.stderr.write(self.main_help_text() + '\n')