Added verbose output for dry-run mode.

This commit is contained in:
Marcus Scholz 2020-03-09 16:09:19 +01:00
parent 83977b50bb
commit f43116abec
1 changed files with 7 additions and 3 deletions

View File

@ -52,10 +52,14 @@ args = parser.parse_args()
localtz = pytz.timezone(args.timezone)
# Inform the user about what is going to happen
if args.outdir == ".":
print('Modifying photos in place (overwrite)')
if args.dry is not None:
if args.outdir == ".":
print('Modifying photos in place (overwrite)')
else:
print('Modifying photos in', str(args.outdir), '(copy)')
else:
print('Modifying photos in', str(args.outdir), '(copy)')
print('Not modifying anything. Just print what would happen without --dry')
# Print table header
print('{:<15} {:<25} {:<22}'.format('filename', 'date / time', 'Exif UserComment'))