Ticket #7151: 7151-patch3.diff

File 7151-patch3.diff, 632 bytes (added by trbs, 16 years ago)

clean version of the patch

  • django/core/management/__init__.py

    diff -r e8b0e3948829 django/core/management/__init__.py
    a b  
    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)
Back to Top