Follow good practice and add main() to split.py

This commit is contained in:
Florian Albrechtskirchinger 2025-02-05 17:25:22 +01:00
parent 3f4e9056e9
commit 50816d4c08
No known key found for this signature in database
GPG Key ID: 9C4E2AE92D3A9595

View File

@ -10,6 +10,8 @@ border = (
"// ----------------------------------------------------------------------------"
)
def main():
args_parser = argparse.ArgumentParser(description=__doc__)
args_parser.add_argument(
"-e",
@ -69,3 +71,7 @@ if do_split:
print("Wrote {} and {}".format(h_out, cc_out))
else:
print("{} and {} are up to date".format(h_out, cc_out))
if __name__ == "__main__":
main()