[Poppler-bugs] [Bug 32149] "pdfinfo -v", "pdfinfo -?", etc. return error status 99

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Dec 8 13:11:45 PST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=32149

--- Comment #3 from Marcel Stimberg <stimberg at users.sourceforge.net> 2010-12-08 13:11:45 PST ---
¿on purpose? pdfinfo -v etc. are perfectly valid calls and should of course
return the error code 0, the error code 99 is signalling "other error"
according to the man page. I know of no other program returning an error code
for successful actions like --help etc.

A quick look at the code shows the reason for the bug: all cases showing the
version and/or help information are lumped together. Some of them (invalid
options) should return 99, others (asking for the version or help info) should
not.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list