Clean up of the command line argument error processing from [6400].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6401 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2007-09-21 16:52:32 +00:00
parent 302eeaf190
commit 626a341587
1 changed files with 6 additions and 3 deletions

View File

@ -175,8 +175,11 @@ class ManagementUtility(object):
# early
parser = LaxOptionParser(version=get_version(),
option_list=BaseCommand.option_list)
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]