diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-10-21 22:06:52 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-10-21 22:06:52 +0000 |
| commit | 0ffeb3a42fb2a72356a1059d6d773ad521972e5e (patch) | |
| tree | e7c7b568734959f3a5e91a51a293783829029c65 | |
| parent | 8e87587e89db8014300f0927799ea025fee53d15 (diff) | |
Fixed "django-admin.py --version" so that it doesn't print the version string
twice.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/management/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py index 774fe59d31..f706fa3c7e 100644 --- a/django/core/management/__init__.py +++ b/django/core/management/__init__.py @@ -217,7 +217,8 @@ class ManagementUtility(object): # 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: |
