Add support for `--output-file-append`. Fixes #15074.