def print_alias_help(self):
        if not self.aliases:
            return
        
        lines = []
        classdict = {}
        for cls in self.classes:
            # include all parents (up to, but excluding Configurable) in available names
            for c in cls.mro()[:-3]:
                classdict[c.__name__] = c
        
        for alias, longname in self.aliases.items():
            classname, traitname = longname.split('.',1)
            cls = classdict[classname]
            
            trait = cls.class_traits(config=True)[traitname]
            help = cls.class_get_trait_help(trait).splitlines()
            # reformat first line
            help[0] = help[0].replace(longname, alias) + ' (%s)'%longname
            lines.extend(help)
        # lines.append('')
        print(os.linesep.join(lines))
Instantiate a well-behaved Options class.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/config/application.py/Application.print_alias_help--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_usage.py/HelpStringTest.setUp