Print out the attributes of a compiler instance.
(self)
| 554 | self.set_libraries(self.get_libraries()) |
| 555 | |
| 556 | def dump_properties(self): |
| 557 | """Print out the attributes of a compiler instance.""" |
| 558 | props = [] |
| 559 | for key in list(self.executables.keys()) + \ |
| 560 | ['version', 'libraries', 'library_dirs', |
| 561 | 'object_switch', 'compile_switch']: |
| 562 | if hasattr(self, key): |
| 563 | v = getattr(self, key) |
| 564 | props.append((key, None, '= '+repr(v))) |
| 565 | props.sort() |
| 566 | |
| 567 | pretty_printer = FancyGetopt(props) |
| 568 | for l in pretty_printer.generate_help("%s instance properties:" \ |
| 569 | % (self.__class__.__name__)): |
| 570 | if l[:4]==' --': |
| 571 | l = ' ' + l[4:] |
| 572 | print(l) |
| 573 | |
| 574 | ################### |
| 575 |
no test coverage detected