diff options
Diffstat (limited to 'django/core')
| -rw-r--r-- | django/core/management/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py index 1ba093e51f..4e30a28f33 100644 --- a/django/core/management/__init__.py +++ b/django/core/management/__init__.py @@ -344,7 +344,12 @@ class ManagementUtility: # Preprocess options to extract --settings and --pythonpath. # These options could affect the commands that are available, so they # must be processed early. - 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='*') # catch-all |
