mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user