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
This commit is contained in:
Adrian Holovaty 2005-11-11 16:42:41 +00:00
parent c62b427b12
commit cb222e4d4e
1 changed files with 1 additions and 1 deletions

View File

@ -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'):