From cb222e4d4e5f3ebe4ba6773c8e39bc5702f4af57 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 11 Nov 2005 16:42:41 +0000 Subject: [PATCH] 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 --- django/bin/django-admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/bin/django-admin.py b/django/bin/django-admin.py index 89297d4cf9..c66d195ae5 100755 --- a/django/bin/django-admin.py +++ b/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'):