Skip to content
Snippets Groups Projects
Commit f1982aca authored by Sebastien Helleu's avatar Sebastien Helleu
Browse files

Add a main function

parent 8202406f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -47,7 +47,7 @@ import subprocess
import sys
import traceback
 
VERSION = '0.5'
VERSION = '0.6'
 
 
class GitChart:
Loading
Loading
@@ -324,7 +324,8 @@ class GitChart:
return False
 
 
if __name__ == "__main__":
def main():
"""Main function, entry point."""
# parse command line arguments
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
Loading
Loading
@@ -370,3 +371,7 @@ if __name__ == "__main__":
# error
print('ERROR: failed to generate chart:', vars(args))
sys.exit(1)
if __name__ == "__main__":
main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment