From a4b0947a92df5649ed3cafc669a7b6a8cf0e50f2 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sun, 10 Jan 2010 21:36:12 +0000 Subject: [PATCH] Fixed #11842 -- django-admin.py now displays usage information if invoked with no arguments. Thanks, bitprophet git-svn-id: http://code.djangoproject.com/svn/django/trunk@12198 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py index e0ba8508e835e..32e744374a7ff 100644 --- a/django/core/management/__init__.py +++ b/django/core/management/__init__.py @@ -358,8 +358,7 @@ def execute(self): try: subcommand = self.argv[1] except IndexError: - sys.stderr.write("Type '%s help' for usage.\n" % self.prog_name) - sys.exit(1) + subcommand = 'help' # Display help if no arguments were given. if subcommand == 'help': if len(args) > 2: