| 149 | |
| 150 | |
| 151 | def dump_options(self, header=None, indent=""): |
| 152 | from distutils.fancy_getopt import longopt_xlate |
| 153 | if header is None: |
| 154 | header = "command options for '%s':" % self.get_command_name() |
| 155 | self.announce(indent + header, level=log.INFO) |
| 156 | indent = indent + " " |
| 157 | for (option, _, _) in self.user_options: |
| 158 | option = option.translate(longopt_xlate) |
| 159 | if option[-1] == "=": |
| 160 | option = option[:-1] |
| 161 | value = getattr(self, option) |
| 162 | self.announce(indent + "%s = %s" % (option, value), |
| 163 | level=log.INFO) |
| 164 | |
| 165 | def run(self): |
| 166 | """A command's raison d'etre: carry out the action it exists to |