Program enters infinite loop if called without arguments?
#133
Closed
opened 2 years ago by mara0004
·
2 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
When I run only
img2pdf
without arguments, nothing happens, but the process keeps busy. It looks like it might have entered an infinite loop. Is this the desired behaviour? I would rather have expected it to abort with an error message.Yes, this is documented in the
--help
output for theinfile
option:This is so that img2pdf can be used as part of the pipeline like so:
This is useful for situations where the image is created by another program and you want to avoid first having to write out a temporary file. So instead of creating a temporary file you can then do:
Ok, that makes sense, thanks!