MCPcopy Index your code
hub / github.com/USBToolBox/tool / print_options

Method print_options

Scripts/utils.py:159–168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

157 print()
158
159 def print_options(self):
160 for index, option in enumerate(self.options):
161 if self.auto_number:
162 option[0] = str((index + 1))
163 print(option[0] + ". " + (option[1]() if callable(option[1]) else option[1]))
164 for i in option[2]:
165 print(" " + i)
166 if self.add_quit:
167 print(f"{self.return_option[0]}. {self.return_option[1]}")
168 print()
169
170 def select(self):
171 print(ansiescapes.cursorSavePosition, end="")

Callers 2

build_kextMethod · 0.95
startMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected