Skip to content

Commit

Permalink
Changed django-admin.py to display help if invoked with no arguments.…
Browse files Browse the repository at this point in the history
… Thanks, sopel

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Nov 11, 2005
1 parent c62b427 commit cb222e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/bin/django-admin.py
Expand Up @@ -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'):
Expand Down

0 comments on commit cb222e4

Please sign in to comment.