Code

Ticket #7151: 7151-patch3.diff

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

clean version of the patch

Line 
1diff -r e8b0e3948829 django/core/management/__init__.py
2--- a/django/core/management/__init__.py        Wed Jun 11 14:01:35 2008 +0000
3+++ b/django/core/management/__init__.py        Sat Jun 14 16:39:46 2008 +0200
4@@ -203,8 +203,8 @@
5             sys.exit(1)
6 
7         if subcommand == 'help':
8-            if len(args) > 2:
9-                self.fetch_command(args[2]).print_help(self.prog_name, args[2])
10+            if len(self.argv) > 2:
11+                self.fetch_command(self.argv[2]).print_help(self.prog_name, self.argv[2])
12             else:
13                 sys.stderr.write(self.main_help_text() + '\n')
14                 sys.exit(1)