Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #11842 -- django-admin.py now displays usage information if inv…

…oked with no arguments. Thanks, bitprophet

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12198 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a4b0947a92df5649ed3cafc669a7b6a8cf0e50f2 1 parent e1e4050
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  django/core/management/__init__.py
View
3  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:
Please sign in to comment.
Something went wrong with that request. Please try again.