##// END OF EJS Templates
remember argv used to initialize an Application...
MinRK -
Show More
@@ -142,6 +142,9 b' class Application(SingletonConfigurable):'
142
142
143 # The version string of this application.
143 # The version string of this application.
144 version = Unicode(u'0.0')
144 version = Unicode(u'0.0')
145
146 # the argv used to initialize the application
147 argv = List(Unicode)
145
148
146 # The log level for the application
149 # The log level for the application
147 log_level = Enum((0,10,20,30,40,50,'DEBUG','INFO','WARN','ERROR','CRITICAL'),
150 log_level = Enum((0,10,20,30,40,50,'DEBUG','INFO','WARN','ERROR','CRITICAL'),
@@ -454,6 +457,7 b' class Application(SingletonConfigurable):'
454 def parse_command_line(self, argv=None):
457 def parse_command_line(self, argv=None):
455 """Parse the command line arguments."""
458 """Parse the command line arguments."""
456 argv = sys.argv[1:] if argv is None else argv
459 argv = sys.argv[1:] if argv is None else argv
460 self.argv = list(argv)
457
461
458 if argv and argv[0] == 'help':
462 if argv and argv[0] == 'help':
459 # turn `ipython help notebook` into `ipython notebook -h`
463 # turn `ipython help notebook` into `ipython notebook -h`
General Comments 0
You need to be logged in to leave comments. Login now