Author: mtredinnick
Date: 2007-10-21 17:06:52 -0500 (Sun, 21 Oct 2007)
New Revision: 6591
Modified:
django/trunk/django/core/management/__init__.py
Log:
Fixed "django-admin.py --version" so that it doesn't print the version string
twice.
Modified: django/trunk/django/core/management/__init__.py
===================================================================
--- django/trunk/django/core/management/__init__.py 2007-10-21 21:53:18 UTC
(rev 6590)
+++ django/trunk/django/core/management/__init__.py 2007-10-21 22:06:52 UTC
(rev 6591)
@@ -217,7 +217,8 @@
# 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:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---