#20 return exit code

closed-accepted
nobody
None
5
2010-05-16
2010-05-12
Silicon
No

OptiPNG return the same exit code if the operation sucess or if do not (errorlevel=1).

The MS-DOS estandar is return exit code = 0 if the program finish OK.
Return exit code -1 if the program finish with error.

In addicion the program can return several exit codes for comunicate several error status, but retur 0 if sucesfull and -1 if terminate with error are the minimal.

It is very importan for control the aplication in batch archive or for call it from grafical interface.

Can you add this change.

Discussion

  • dos386
    dos386
    2010-05-13

    > OptiPNG return the same exit code if the operation sucess or
    > if do not (errorlevel=1)

    yeah

    > The MS-DOS estandar is

    dead stuff

    > In addicion the program can return several exit codes for comunicate
    > several error status, but retur 0 if sucesfull and -1 if terminate
    > with error are the minimal.
    > It is very importan for control the aplication in batch archive or for
    > call it from grafical interface.
    > Can you add this change.

    Agree, check this:

    http://www.jonof.id.au/forum/index.php?topic=1515.0

    > Sep 22 2009: Added exit code 3. Here are the possible values:
    > 0: wrote file
    > 1: file error
    > 2: unable to compress further
    > 3: bad options

     
  • Silicon
    Silicon
    2010-05-16

    • status: open --> closed-accepted
     
  • Silicon
    Silicon
    2010-05-16

    I was with one old version.
    Is not a bug in this version.

    Thanks