Merge pull request #1518 from Exiv2/fix_1504_metacopy_optstring

Fix 1504 metacopy optstring
main
Robin Mills 4 years ago committed by GitHub
commit 4a7cc1d253
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -256,7 +256,7 @@ Demonstrates Exiv2 library APIs to print Iptc data. _Code: [iptcprint.cpp](sampl
#### metacopy
```
Usage: metacopy [-iecaph] readfile writefile
Usage: metacopy [-iecxaph] readfile writefile
Reads and writes raw metadata. Use -h option for help.
```

@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
import system_tests
class issue_1504_metacopy(metaclass=system_tests.CaseMeta):
url = "https://github.com/Exiv2/exiv2/pull/1504"
commands = ["$metacopy"
,"$metacopy -h"
]
retval = [ 1,2]
stderr = [ """metacopy: Read and write files must be specified
""",""]
stdout = ["""
Reads and writes raw metadata. Use -h option for help.
Usage: metacopy [-iecxaph] readfile writefile
""","""
Reads and writes raw metadata. Use -h option for help.
Usage: metacopy [-iecxaph] readfile writefile
Options:
-i Read Iptc data from readfile and write to writefile.
-e Read Exif data from readfile and write to writefile.
-c Read Jpeg comment from readfile and write to writefile.
-x Read XMP data from readfile and write to writefile.
-a Read all metadata from readfile and write to writefile.
-p Preserve existing metadata in writefile if not replaced.
-h Display this help and exit.
"""]

@ -26,6 +26,7 @@ valgrind:
exiv2: ${ENV:exiv2_path}/exiv2
unit_tests: ${ENV:exiv2_path}/unit_tests
exiv2json: ${ENV:exiv2_path}/exiv2json
metacopy: ${ENV:exiv2_path}/metacopy
data_path: ../test/data
tmp_path: ../test/tmp
tiff_test: ${ENV:exiv2_path}/tiff-test

Loading…
Cancel
Save