20 lines
792 B
Diff
20 lines
792 B
Diff
# django__django-15781
|
|
# Loki Mode Multi-Agent Patch
|
|
# Attempts: 1
|
|
|
|
--- a/django/core/management/base.py
|
|
+++ b/django/core/management/base.py
|
|
@@ -285,10 +285,11 @@ class BaseCommand:
|
|
"""
|
|
Create and return the ``ArgumentParser`` which will be used to
|
|
parse the arguments to this command.
|
|
"""
|
|
+ kwargs.setdefault("formatter_class", DjangoHelpFormatter)
|
|
parser = CommandParser(
|
|
prog="%s %s" % (os.path.basename(prog_name), subcommand),
|
|
description=self.help or None,
|
|
- formatter_class=DjangoHelpFormatter,
|
|
missing_args_message=getattr(self, "missing_args_message", None),
|
|
called_from_command_line=getattr(self, "_called_from_command_line", None),
|
|
**kwargs,
|
|
)
|