Skip to content

Commit

Permalink
Fixed "django-admin.py --version" so that it doesn't print the versio…
Browse files Browse the repository at this point in the history
…n string

twice.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Oct 21, 2007
1 parent 8e87587 commit 0ffeb3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django/core/management/__init__.py
Expand Up @@ -217,7 +217,8 @@ def execute(self):
# Special-cases: We want 'django-admin.py --version' and
# 'django-admin.py --help' to work, for backwards compatibility.
elif self.argv[1:] == ['--version']:
print django.get_version()
# LaxOptionParser already takes care of printing the version.
pass
elif self.argv[1:] == ['--help']:
sys.stderr.write(self.main_help_text() + '\n')
else:
Expand Down

0 comments on commit 0ffeb3a

Please sign in to comment.