Show More
@@ -404,6 +404,10 b' class Application(SingletonConfigurable):' | |||||
404 | def parse_command_line(self, argv=None): |
|
404 | def parse_command_line(self, argv=None): | |
405 | """Parse the command line arguments.""" |
|
405 | """Parse the command line arguments.""" | |
406 | argv = sys.argv[1:] if argv is None else argv |
|
406 | argv = sys.argv[1:] if argv is None else argv | |
|
407 | ||||
|
408 | if argv and argv[0] == 'help': | |||
|
409 | # turn `ipython help notebook` into `ipython notebook -h` | |||
|
410 | argv = argv[1:] + ['-h'] | |||
407 |
|
411 | |||
408 | if self.subcommands and len(argv) > 0: |
|
412 | if self.subcommands and len(argv) > 0: | |
409 | # we have subcommands, and one may have been specified |
|
413 | # we have subcommands, and one may have been specified |
General Comments 0
You need to be logged in to leave comments.
Login now