##// END OF EJS Templates
Equivalent but simpler/faster code in loader.py.
Fernando Perez -
Show More
@@ -334,8 +334,7 b' class ArgParseConfigLoader(CommandLineConfigLoader):'
334
334
335 def _add_arguments(self):
335 def _add_arguments(self):
336 for argument in self.arguments:
336 for argument in self.arguments:
337 if not argument[1].has_key('default'):
337 argument[1].setdefault('default', NoConfigDefault)
338 argument[1]['default'] = NoConfigDefault
339 self.parser.add_argument(*argument[0],**argument[1])
338 self.parser.add_argument(*argument[0],**argument[1])
340
339
341 def _parse_args(self, args=None):
340 def _parse_args(self, args=None):
General Comments 0
You need to be logged in to leave comments. Login now