Add main entry point

This commit is contained in:
Ben Spoor 2021-03-06 10:21:58 +01:00
parent 36d74e0505
commit 09f34faaf2
1 changed files with 4 additions and 1 deletions

View File

@ -2352,8 +2352,11 @@ def flawfind():
return 1 if error_level_exceeded else 0
if __name__ == '__main__':
def main():
try:
sys.exit(flawfind())
except KeyboardInterrupt:
print("*** Flawfinder interrupted")
if __name__ == '__main__':
main()