Beispiel #1
0
    def dump_properties(self):
        """Print out the attributes of a compiler instance."""
        props = []
        for key in list(self.executables.keys()) + \
                ['version','libraries','library_dirs',
                 'object_switch','compile_switch']:
            if hasattr(self, key):
                v = getattr(self, key)
                props.append((key, None, '= ' + repr(v)))
        props.sort()

        pretty_printer = FancyGetopt(props)
        for l in pretty_printer.generate_help("%s instance properties:" \
                                              % (self.__class__.__name__)):
            if l[:4] == '  --':
                l = '  ' + l[4:]
            print(l)
Beispiel #2
0
    def dump_properties(self):
        """Print out the attributes of a compiler instance."""
        props = []
        for key in list(self.executables.keys()) + \
                ['version', 'libraries', 'library_dirs',
                 'object_switch', 'compile_switch']:
            if hasattr(self, key):
                v = getattr(self, key)
                props.append((key, None, '= '+repr(v)))
        props.sort()

        pretty_printer = FancyGetopt(props)
        for l in pretty_printer.generate_help("%s instance properties:" \
                                              % (self.__class__.__name__)):
            if l[:4]=='  --':
                l = '  ' + l[4:]
            print(l)
Beispiel #3
0
    def dump_properties(self):
        """Print out the attributes of a compiler instance."""
        props = []
        for key in list(self.executables.keys()) + [
            "version",
            "libraries",
            "library_dirs",
            "object_switch",
            "compile_switch",
        ]:
            if hasattr(self, key):
                v = getattr(self, key)
                props.append((key, None, "= " + repr(v)))
        props.sort()

        pretty_printer = FancyGetopt(props)
        for l in pretty_printer.generate_help("%s instance properties:" % (self.__class__.__name__)):
            if l[:4] == "  --":
                l = "  " + l[4:]
            print(l)
    def dump_properties(self):
        """Print out the attributes of a compiler instance."""
        props = []
        for key in list(self.executables.keys()) + [
                "version",
                "libraries",
                "library_dirs",
                "object_switch",
                "compile_switch",
        ]:
            if hasattr(self, key):
                v = getattr(self, key)
                props.append((key, None, "= " + repr(v)))
        props.sort()

        pretty_printer = FancyGetopt(props)
        for l in pretty_printer.generate_help("%s instance properties:" %
                                              (self.__class__.__name__)):
            if l[:4] == "  --":
                l = "  " + l[4:]
            print(l)