Author: russellm
Date: 2007-09-21 11:52:32 -0500 (Fri, 21 Sep 2007)
New Revision: 6401
Modified:
django/trunk/django/core/management/__init__.py
Log:
Clean up of the command line argument error processing from [6400].
Modified: django/trunk/django/core/management/__init__.py
===================================================================
--- django/trunk/django/core/management/__init__.py 2007-09-21 16:19:20 UTC
(rev 6400)
+++ django/trunk/django/core/management/__init__.py 2007-09-21 16:52:32 UTC
(rev 6401)
@@ -122,7 +122,7 @@
the commands (and thus the options) that are available to the user.
"""
def error(self, msg):
- pass
+ pass
class ManagementUtility(object):
"""
@@ -175,8 +175,11 @@
# early
parser = LaxOptionParser(version=get_version(),
option_list=BaseCommand.option_list)
- options, args = parser.parse_args(self.argv)
- handle_default_options(options)
+ try:
+ options, args = parser.parse_args(self.argv)
+ handle_default_options(options)
+ except:
+ pass # Ignore any option errors at this point.
try:
subcommand = self.argv[1]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---