MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / dump_options

Method dump_options

tools/python-3.11.9-amd64/Lib/distutils/cmd.py:151–163  ·  view source on GitHub ↗
(self, header=None, indent="")

Source from the content-addressed store, hash-verified

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

Callers 1

test_dump_optionsMethod · 0.45

Calls 3

get_command_nameMethod · 0.95
announceMethod · 0.95
translateMethod · 0.80

Tested by 1

test_dump_optionsMethod · 0.36