Menu

#1016 Command line version info exists with non zero

Usability
closed-fixed
None
5
2016-11-14
2016-09-12
No

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

Discussion

  • pavel_pimenov

    pavel_pimenov - 2016-11-14

    ~/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

     
  • Jerome Martinez

    Jerome Martinez - 2016-11-14

    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.

     
  • Jerome Martinez

    Jerome Martinez - 2016-11-14
    • status: open --> closed-fixed
    • assigned_to: pavel_pimenov
     

Log in to post a comment.

MongoDB Logo MongoDB