From 47cc60d94b6f96ae939b7325be793d8a2cf8f31d Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Wed, 20 Jul 2005 20:35:53 +0000 Subject: [PATCH] Fixed small bug in print_error() calls in django-admin git-svn-id: http://code.djangoproject.com/svn/django/trunk@252 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/bin/django-admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/bin/django-admin.py b/django/bin/django-admin.py index abb2d13d9f..7e620933e2 100755 --- a/django/bin/django-admin.py +++ b/django/bin/django-admin.py @@ -41,7 +41,7 @@ class DjangoOptionParser(OptionParser): sys.exit(1) def print_error(msg, cmd): - sys.stderr.write("Error: %s\nRun %s --help for help." % (msg, cmd)) + sys.stderr.write('Error: %s\nRun "%s --help" for help.\n' % (msg, cmd)) sys.exit(1) def main(): @@ -60,9 +60,9 @@ def main(): try: action = args[0] except IndexError: - print_error("An 'action' is required.") + print_error("An action is required.", sys.argv[0]) if not ACTION_MAPPING.has_key(action): - print_error("Your 'action' was invalid.") + print_error("Your action, %r, was invalid." % action, sys.argv[0]) if action == 'init': ACTION_MAPPING[action]() elif action in ('startapp', 'startproject'):