mirror of https://github.com/django/django.git
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:
parent
e1e4050347
commit
a4b0947a92
|
@ -358,8 +358,7 @@ class ManagementUtility(object):
|
||||||
try:
|
try:
|
||||||
subcommand = self.argv[1]
|
subcommand = self.argv[1]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
sys.stderr.write("Type '%s help' for usage.\n" % self.prog_name)
|
subcommand = 'help' # Display help if no arguments were given.
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
if subcommand == 'help':
|
if subcommand == 'help':
|
||||||
if len(args) > 2:
|
if len(args) > 2:
|
||||||
|
|
Loading…
Reference in New Issue