-progress pipe:1
will write out to stdout,
Or
pipe:2
to stderr.
Then just read from the pipe you associate.
I haven’t tried it myself, google told me to do it.
It might mess up your parsing if other messages are interspersed in the progress messages, but hopefully you can distinguish between the two types of information.