Django

Code

Ticket #7151: 7151-patch3.diff

File 7151-patch3.diff, 0.6 kB (added by trbs, 7 months ago)

clean version of the patch

  • a/django/core/management/__init__.py

    old new  
    203203            sys.exit(1) 
    204204 
    205205        if subcommand == 'help': 
    206             if len(args) > 2: 
    207                 self.fetch_command(args[2]).print_help(self.prog_name, args[2]) 
     206            if len(self.argv) > 2: 
     207                self.fetch_command(self.argv[2]).print_help(self.prog_name, self.argv[2]) 
    208208            else: 
    209209                sys.stderr.write(self.main_help_text() + '\n') 
    210210                sys.exit(1)