1
0
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:
Adrian Holovaty
2007-09-11 03:46:35 +00:00
parent c554858f6b
commit a247c726c2
2 changed files with 13 additions and 13 deletions

View File

@@ -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: