mirror of
https://github.com/django/django.git
synced 2025-08-30 07:17:49 +00:00
Fixed #29301 -- Made management command --help display command-specific arguments before common arguments.
This commit is contained in:
parent
2919a08c20
commit
c3055242c8
2 changed files with 10 additions and 1 deletions
|
@ -1495,6 +1495,13 @@ class CommandTypes(AdminScriptTestCase):
|
|||
args = ['check', '--help']
|
||||
out, err = self.run_manage(args)
|
||||
self.assertNoOutput(err)
|
||||
# Command-specific options like --tag appear before options common to
|
||||
# all commands like --version.
|
||||
tag_location = out.find('--tag')
|
||||
version_location = out.find('--version')
|
||||
self.assertNotEqual(tag_location, -1)
|
||||
self.assertNotEqual(version_location, -1)
|
||||
self.assertLess(tag_location, version_location)
|
||||
self.assertOutput(out, "Checks the entire Django project for potential problems.")
|
||||
|
||||
def test_color_style(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue