mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Changed core.management print_help() methods to accept a prog_name argument instead of an argv list, in an attempt to figure out why auto reloading stopped working
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -49,11 +49,11 @@ class BaseCommand(object):
|
||||
version=self.get_version(),
|
||||
option_list=self.option_list)
|
||||
|
||||
def print_help(self, argv):
|
||||
parser = self.create_parser(argv[0])
|
||||
def print_help(self, prog_name):
|
||||
parser = self.create_parser(prog_name)
|
||||
parser.print_help()
|
||||
|
||||
def run(self, argv):
|
||||
def run_from_argv(self, argv):
|
||||
parser = self.create_parser(argv[0])
|
||||
options, args = parser.parse_args(argv[1:])
|
||||
if options.settings:
|
||||
|
||||
Reference in New Issue
Block a user