Add main entry point
This commit is contained in:
parent
36d74e0505
commit
09f34faaf2
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue