add --progress-file option
(cherry picked from commit b19ef206bb1fb013945a9c338f1694d520afc21c)