Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
show_version()
if option in ("-q", "--quick"):
detailed = False
if option in ("-t", "--stop-tag"):
stop_tag = arg
if option in ("-s", "--strict"):
strict = True
if option in ("-d", "--debug"):
debug = True
if option in ("-c", "--color"):
color = True
if not args:
usage(2)
exif_log.setup_logger(debug, color)
# output info for each file
for filename in args:
file_start = timeit.default_timer()
try:
img_file = open(str(filename), 'rb')
except IOError:
logger.error("'%s' is unreadable", filename)
continue
logger.info("Opening: %s", filename)
tag_start = timeit.default_timer()
# get the tags
data = process_file(img_file, stop_tag=stop_tag, details=detailed, strict=strict, debug=debug)