Page 1 of 1

Commands without images returns exit code 1

Posted: 2014-09-24T11:06:07-07:00
by janko-m
Commands like these:

Code: Select all

identify -list command
convert -help
identify
all return exit code 1. I think this shouldn't be the case, because no error has happened. They should return exit code 0.

I'm developing a wrapper for ImageMagick, and I'm actually using "identify -list command" to dynamically define methods, but my class for executing commands is setup to automatically raise an error when the status code isn't 0, so executing this command raises an error (because ImageMagick raised it).

Re: Commands without images returns exit code 1

Posted: 2014-09-24T11:42:23-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.9-9 Beta, available by sometime tomorrow. Thanks.

Re: Commands without images returns exit code 1

Posted: 2014-09-24T11:54:15-07:00
by janko-m
That was quick! Thanks a lot :)