Add main() entrypoint for all scripts under bin

This commit is contained in:
Eric Torres
2024-05-11 23:57:06 -07:00
parent be4267c295
commit 02a6acbeab
4 changed files with 31 additions and 14 deletions

View File

@@ -75,7 +75,7 @@ def package_lists_match(gist_id, package_list):
# ========== Main Script ==========
if __name__ == "__main__":
def main():
parser = argparse.ArgumentParser(description=DESCRIPTION)
parser.add_argument(
"-c",
@@ -146,3 +146,7 @@ if __name__ == "__main__":
sys.exit(e.returncode)
else:
print("Update complete.")
if __name__ == "__main__":
main()