summaryrefslogtreecommitdiff
path: root/django/bin
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-11-11 16:42:41 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-11-11 16:42:41 +0000
commitcb222e4d4e5f3ebe4ba6773c8e39bc5702f4af57 (patch)
tree9a7931b5163fae4020c9d23c45654086d263501a /django/bin
parentc62b427b122030cb18df96b1f1017b7aa4b97641 (diff)
downloaddjango-cb222e4d4e5f3ebe4ba6773c8e39bc5702f4af57.tar.gz
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
Diffstat (limited to 'django/bin')
-rwxr-xr-xdjango/bin/django-admin.py2
1 files changed, 1 insertions, 1 deletions
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'):