Output of -PV was not suitable for inputting to -m-, key was missing. (#1970)

* Output of -PV was not suitable for inputting to -m-, key was missing.

Fix #1969

* Make V flag to -P also print the type

This makes -PV work also for non-built-in tags (of which their type is
not known by exiv2).

* Adjust man to accomodate for the V flag change
This commit is contained in:
Facundo
2021-12-29 17:19:23 +01:00
committed by GitHub
parent c28e501b91
commit b52b6db39f
6 changed files with 26 additions and 10 deletions
+16
View File
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
import system_tests
class TestPrintPlainWithSet(metaclass=system_tests.CaseMeta):
url = "https://github.com/Exiv2/exiv2/issues/1969"
filename = "$data_path/smiley1.jpg"
commands = ["$exiv2 -K Exif.Image.ImageDescription -PV $filename"]
stdout = [
"""set Exif.Image.ImageDescription Ascii Well it is a smiley that happens to be green
"""
]
retval = [0]