diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2010-01-10 21:36:12 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2010-01-10 21:36:12 +0000 |
| commit | a4b0947a92df5649ed3cafc669a7b6a8cf0e50f2 (patch) | |
| tree | 03c7d0516d8658512b83a73ffd5030b1cdf844a7 | |
| parent | e1e4050347b5fa69290845629af94b608deb50e1 (diff) | |
Fixed #11842 -- django-admin.py now displays usage information if invoked with no arguments. Thanks, bitprophet
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12198 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/management/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py index e0ba8508e8..32e744374a 100644 --- a/django/core/management/__init__.py +++ b/django/core/management/__init__.py @@ -358,8 +358,7 @@ class ManagementUtility(object): try: subcommand = self.argv[1] except IndexError: - sys.stderr.write("Type '%s help' for usage.\n" % self.prog_name) - sys.exit(1) + subcommand = 'help' # Display help if no arguments were given. if subcommand == 'help': if len(args) > 2: |
