Note that the getopt code was looping forever when one of the argument options was incorrect. Example: ./exiv2 -A 20:00:00 -Y 2018 -O 11 -D 01 ad myImage.tiff