Add "input-format" parameter.

And rename "format" to "output-format".