mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Renamed 'args' variables in django.core.management to 'argv' to be more clear, and removed an unneeded import
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -49,13 +49,13 @@ class BaseCommand(object):
|
||||
version=self.get_version(),
|
||||
option_list=self.option_list)
|
||||
|
||||
def print_help(self, args):
|
||||
parser = self.create_parser(args[0])
|
||||
def print_help(self, argv):
|
||||
parser = self.create_parser(argv[0])
|
||||
parser.print_help()
|
||||
|
||||
def run(self, args):
|
||||
parser = self.create_parser(args[0])
|
||||
(options, args) = parser.parse_args(args[1:])
|
||||
def run(self, argv):
|
||||
parser = self.create_parser(argv[0])
|
||||
options, args = parser.parse_args(argv[1:])
|
||||
if options.settings:
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = options.settings
|
||||
if options.pythonpath:
|
||||
|
||||
Reference in New Issue
Block a user