mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #15359 -- Ensure that the -h option is always honored by django-admin.py. Thanks to teubank for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15605 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -372,7 +372,7 @@ class ManagementUtility(object):
|
||||
elif self.argv[1:] == ['--version']:
|
||||
# LaxOptionParser already takes care of printing the version.
|
||||
pass
|
||||
elif self.argv[1:] == ['--help']:
|
||||
elif self.argv[1:] in (['--help'], ['-h']):
|
||||
parser.print_lax_help()
|
||||
sys.stderr.write(self.main_help_text() + '\n')
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user