--format
Also improve error reporting for `--format` with malformed or unsupported extensions This commit is very messy, as it also does an refac in the project, which should ideally be in a separated commit