Files
app-store-optimization/skills/loki-mode/benchmarks/results/2026-01-05-01-24-17/swebench-patches/django__django-13658.patch

19 lines
1.0 KiB
Diff

Based on the issue description, I can see this is about the Django framework's ManagementUtility class. The issue describes exactly what needs to be fixed - the CommandParser instantiation needs to pass `prog=self.prog_name`. Let me provide the patch based on the information in the issue:
```
--- a/django/core/management/__init__.py
+++ b/django/core/management/__init__.py
@@ -344,7 +344,11 @@ 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='*')
```