about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--exiftool.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/exiftool.el b/exiftool.el
index cf7a89f..77d829d 100644
--- a/exiftool.el
+++ b/exiftool.el
@@ -106,8 +106,10 @@ If no TAGS are specified, copy all tags from SOURCE."
 	 "-overwrite_original"
 	 "-tagsFromFile" source
 	 (append
-	  (mapcar (apply-partially 'format "-%s") tags)
-	  (list "-all:all" destination)))
+	  (if tags
+	      (mapcar (apply-partially 'format "-%s") tags)
+	    (list "-all:all"))
+	  (list destination)))
   (message "Tags from %s copied to %s" source destination)
   destination)