From f43116abece5cc869f553e37c9cbeb45d8a0fca3 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Mon, 9 Mar 2020 16:09:19 +0100 Subject: [PATCH] Added verbose output for dry-run mode. --- exif_rad.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/exif_rad.py b/exif_rad.py index d5bd091..7010f1b 100755 --- a/exif_rad.py +++ b/exif_rad.py @@ -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'))