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...
1 parent c62b427 commit cb222e4d4e5f3ebe4ba6773c8e39bc5702f4af57 @adrianholovaty adrianholovaty committed Nov 11, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/bin/django-admin.py
View
2 django/bin/django-admin.py
@@ -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'):

0 comments on commit cb222e4

Please sign in to comment.