Show More
@@ -160,7 +160,7 b' class Configurable(HasTraits):' | |||
|
160 | 160 | final_help = [] |
|
161 | 161 | final_help.append(u'%s options' % cls.__name__) |
|
162 | 162 | final_help.append(len(final_help[0])*u'-') |
|
163 | for k,v in cls.class_traits(config=True).iteritems(): | |
|
163 | for k,v in sorted(cls.class_traits(config=True).iteritems()): | |
|
164 | 164 | help = cls.class_get_trait_help(v, inst) |
|
165 | 165 | final_help.append(help) |
|
166 | 166 | return '\n'.join(final_help) |
@@ -417,8 +417,9 b' class KeyValueConfigLoader(CommandLineConfigLoader):' | |||
|
417 | 417 | |
|
418 | 418 | >>> from IPython.config.loader import KeyValueConfigLoader |
|
419 | 419 | >>> cl = KeyValueConfigLoader() |
|
420 | >>> cl.load_config(["--A.name='brian'","--B.number=0"]) | |
|
421 | {'A': {'name': 'brian'}, 'B': {'number': 0}} | |
|
420 | >>> d = cl.load_config(["--A.name='brian'","--B.number=0"]) | |
|
421 | >>> sorted(d.items()) | |
|
422 | [('A', {'name': 'brian'}), ('B', {'number': 0})] | |
|
422 | 423 | """ |
|
423 | 424 | self.clear() |
|
424 | 425 | if argv is None: |
General Comments 0
You need to be logged in to leave comments.
Login now