22 lines
1.0 KiB
Diff
22 lines
1.0 KiB
Diff
# django__django-13658
|
|
# Loki Mode Multi-Agent Patch
|
|
# Attempts: 1
|
|
|
|
I can see the format of an existing patch. Now I need to generate the correct patch. Based on the issue description, there's a `CommandParser` instantiation in `ManagementUtility` that needs `prog=self.prog_name` added.
|
|
|
|
--- a/django/core/management/__init__.py
|
|
+++ b/django/core/management/__init__.py
|
|
@@ -344,7 +344,12 @@ class ManagementUtility:
|
|
top-level options like '--settings' and '--pythonpath', handling
|
|
'--help', and following the Django convention for the use of '--'.
|
|
"""
|
|
- parser = CommandParser(usage='%(prog)s subcommand [options] [args]', add_help=False, allow_abbrev=False)
|
|
+ parser = CommandParser(
|
|
+ prog=self.prog_name,
|
|
+ usage='%(prog)s subcommand [options] [args]',
|
|
+ add_help=False,
|
|
+ allow_abbrev=False,
|
|
+ )
|
|
parser.add_argument('--settings')
|
|
parser.add_argument('--pythonpath')
|
|
parser.add_argument('args', nargs='*')
|