Update main.py

This commit is contained in:
Richard Mwewa
2022-12-23 19:36:29 +02:00
committed by GitHub
parent 8fc14d3ec4
commit 49215fd03e

View File

@@ -10,6 +10,10 @@ def octosuite():
configure_logging()
check_updates()
if args:
"""
Iterate over the argument_map and check if the passed command line argument matches any argument in it [argument_map],
if there's a match, we return its method. If no match is found, we do nothing (which will return the usage).
"""
for argument, method in run.argument_map:
if args.method == argument:
method()