#11407: --version weirdness
-------------------------------------+-------------------------------------
     Reporter:  kmtracey             |                    Owner:  marclurr
         Type:  Bug                  |                   Status:  assigned
    Component:  Core (Management     |                  Version:  SVN
  commands)                          |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:                       |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by marclurr):

 Explanation of changes in command_parser.diff:

 1. Modified _process_args on LaxOptionParser so that it doesn't catch the
 SystemExit thrown by the exit() function
 2. Modified print_help on LaxOptionParser to print the help message,
 rather than doing nothing
 3. Renamed LaxOptionParser to ManagementUtilityOptionParser, as it is
 pretty specific to the management utility and isn't used anywhere else
 4. Removed --version, --help and -h logic from ManagementUtility.execute
 5. Removed exception handling for the call to LaxOptionParser.parse_args()
 as it's only purpose seemed to be to catch SystemExit throw when --version
 or --help are specified on the commandline, so allow the specific logic
 below to run. Since this logic has now been removed the exception handling
 is not required

-- 
Ticket URL: <https://code.djangoproject.com/ticket/11407#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to