Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed django-admin.py to display help if invoked with no arguments.…

… Thanks, sopel

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cb222e4d4e5f3ebe4ba6773c8e39bc5702f4af57 1 parent c62b427
Adrian Holovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/bin/django-admin.py
2  django/bin/django-admin.py
View
@@ -77,7 +77,7 @@ def main():
try:
action = args[0]
except IndexError:
- print_error("An action is required.", sys.argv[0])
+ parser.print_usage_and_exit()
if not ACTION_MAPPING.has_key(action):
print_error("Your action, %r, was invalid." % action, sys.argv[0])
if action in ('createsuperuser', 'init', 'validate'):
Please sign in to comment.
Something went wrong with that request. Please try again.