mirror of https://github.com/django/django.git
Renamed a variable in ManagementUtility.execute() for clarity
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6086 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4453f65c78
commit
f15a5c7abb
|
@ -87,12 +87,12 @@ class ManagementUtility(object):
|
||||||
if argv is None:
|
if argv is None:
|
||||||
argv = sys.argv
|
argv = sys.argv
|
||||||
try:
|
try:
|
||||||
command_name = argv[1]
|
subcommand = argv[1]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
sys.stderr.write("Type '%s help' for usage.\n" % os.path.basename(argv[0]))
|
sys.stderr.write("Type '%s help' for usage.\n" % os.path.basename(argv[0]))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if command_name == 'help':
|
if subcommand == 'help':
|
||||||
if len(argv) > 2:
|
if len(argv) > 2:
|
||||||
self.fetch_command(argv[2], argv[0]).print_help(argv[2:])
|
self.fetch_command(argv[2], argv[0]).print_help(argv[2:])
|
||||||
else:
|
else:
|
||||||
|
@ -104,7 +104,7 @@ class ManagementUtility(object):
|
||||||
elif argv[1:] == ['--help']:
|
elif argv[1:] == ['--help']:
|
||||||
self.print_help(argv)
|
self.print_help(argv)
|
||||||
else:
|
else:
|
||||||
self.fetch_command(command_name, argv[0]).run(argv[1:])
|
self.fetch_command(subcommand, argv[0]).run(argv[1:])
|
||||||
|
|
||||||
class ProjectManagementUtility(ManagementUtility):
|
class ProjectManagementUtility(ManagementUtility):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue