~ubuntu-branches/ubuntu/raring/ipython/raring

« back to all changes in this revision

Viewing changes to IPython/config/application.py

  • Committer: Package Import Robot
  • Author(s): Julian Taylor
  • Date: 2013-02-02 11:14:27 UTC
  • mfrom: (1.2.21) (6.2.3 experimental)
  • Revision ID: package-import@ubuntu.com-20130202111427-nxxl7g1ulix8g9lg
Tags: 0.13.2~rc2-1
* New upstream release candidate (LP: #1161818, #1162112)
* pass -a to xvfb-run
* drop DM-Upload-Allowed, not needed anymore
* don't link documentation of ipython-doc so ipython3 does not depend on
  ipython (Closes: #695554)
  Requires ipython-doc.preinst to not lose copyright on upgrade
* add ipython3 and ipython3-qtconsole desktop files (Closes: #693612)
* fix detection of cython modules for multiarch python (Closes: #697704)
* don't install tests for notebook and qtconsole
* bump standard to 3.9.4, no changes required
* add autopkgtests running testsuite and testing tools, cython magics
  and incomplete install message
* fix crash on tracebacks without line numbers (Closes: #701597)
* add tkinter package to debianize-error-messages.patch (Closes: #701707)
* use canonical vcs fields in control

Show diffs side-by-side

added added

removed removed

Lines of Context:
419
419
                # it's a subcommand, and *not* a flag or class parameter
420
420
                return self.initialize_subcommand(subc, subargv)
421
421
 
422
 
        if '-h' in argv or '--help' in argv or '--help-all' in argv:
 
422
        # Arguments after a '--' argument are for the script IPython may be
 
423
        # about to run, not IPython iteslf. For arguments parsed here (help and
 
424
        # version), we want to only search the arguments up to the first
 
425
        # occurrence of '--', which we're calling interpreted_argv.
 
426
        try:
 
427
            interpreted_argv = argv[:argv.index('--')]
 
428
        except ValueError:
 
429
            interpreted_argv = argv
 
430
 
 
431
        if any(x in interpreted_argv for x in ('-h', '--help-all', '--help')):
423
432
            self.print_description()
424
 
            self.print_help('--help-all' in argv)
 
433
            self.print_help('--help-all' in interpreted_argv)
425
434
            self.print_examples()
426
435
            self.exit(0)
427
436
 
428
 
        if '--version' in argv or '-V' in argv:
 
437
        if '--version' in interpreted_argv or '-V' in interpreted_argv:
429
438
            self.print_version()
430
439
            self.exit(0)
431
440