MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / parse_args

Function parse_args

Tests/Scripts/analyze-paced.py:301–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

299 self.canvas.draw()
300
301def parse_args():
302 parser = argparse.ArgumentParser(
303 description="Interactive plot of polled data sequences from test runs."
304 )
305 parser.add_argument(
306 "--folder", required=True,
307 help="Folder containing data generated in the current test run."
308 )
309 parser.add_argument(
310 "--golds",
311 help="Folder containing gold run data (required for one-shot mode)."
312 )
313 parser.add_argument(
314 "--name", required=True,
315 help="Test case name (prefix of CSV files)."
316 )
317 parser.add_argument(
318 "--run-mode", required=True,
319 type=RunMode,
320 choices=list(RunMode),
321 help="Specify a mode of execution"
322 )
323 return parser.parse_args()
324
325def main():
326 args = parse_args()

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected