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