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
This commit is contained in:
Adrian Holovaty 2010-01-10 21:36:12 +00:00
parent e1e4050347
commit a4b0947a92
1 changed files with 1 additions and 2 deletions

View File

@ -358,8 +358,7 @@ class ManagementUtility(object):
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: