add --input-format option to override format detection by file extension