Add more debugging for CLI interface
Please make sure that you add both --export and --export-filename options, otherwise Krita will not export.
BUG:407700 BACKPORT:krita/4.2