Fix passing of parameters for template subcommand.