is seems a little odd for this function ('s error message) to make assumptions on how it's called. (if assumes that it's only called if no template is supplied on the command line)

could we either move the `raise` out, or move the "if supplied arg is None"-check in (or otherwise rewrite)