It seems that the exit code for the version information in the command line interface exists with a non zero code, hence gives the impression that something is broken.
Used command:
mediainfo --Version
Expected behaviour:
Show version details and exit with 0.
Current behaviour:
Shows version details and exists with 255 or -1, depending of OS.
Tested with version 0.7.88 in Windows, exit code -1
https://ci.appveyor.com/project/paazmaya/image-flatify/branch/master/job/83wvnhicnvi4dsn5
and 0.7.52 in Ubuntu, exit code 255
https://travis-ci.org/paazmaya/image-flatify/jobs/159042273#L261
~/src/MediaInfo/Project/GNU/CLI/.libs$ ./mediainfo --version
MediaInfo Command line,
MediaInfoLib - v0.7.90
~/src/MediaInfo/Project/GNU/CLI/.libs$ echo $?
0
https://github.com/MediaArea/MediaInfo/blob/master/Source/CLI/CommandLine_Parser.cpp#L169
and
if (Return==MI_STOP)
return MI_OK; //no more tasks to do
I think we fixed it for another person and forgot to close this ticket.
Closing it now, Hjalmar please reopen the ticket if the issue is still there for you.