def main(): collected = Gitmails(args).execute() if not args.no_cleanup: Helpers.cleanup(args.path)
) parser.add_argument( "-v", "--verbose", help="Increase verbosity level", action="store_true" ) print_group = parser.add_mutually_exclusive_group(required=False) print_group.add_argument( "--raw", help="Print raw results separated by comma", action="store_true" ) print_group.add_argument( "--include-repositories", help="Print emails and repositories relation", action="store_true", ) args = parser.parse_args() def main(): collected = Gitmails(args).execute() if not args.no_cleanup: Helpers.cleanup(args.path) if __name__ == "__main__": try: main() except KeyboardInterrupt: Helpers.cleanup(args.path) print("\nQuiting...") sys.exit(1)