 }
 
 command(
-    Option("template", Path(""), flag: "f", description: "The path to the template json file", validator: isReadable),
+    Option("template", "", flag: "t", description: "The path to the template json file"),
     Option("destination", Path.current + "generated", flag: "d", description: "The directory where the generated files will be created"),
     Option("spec", "", flag: "s", description: "The path or url to a swagger spec json file"),
     Flag("clean", description: "Whether the destination directory will be cleared before generating", default: false),


    let templateConfig: TemplateConfig
    do {
        templateConfig = try TemplateConfig(path: templatePath, options: optionsDictionary)
    } catch let error {
        writeError("Error loading template: \(error)")
        exit(EXIT_FAILURE)

import Commander
import SwagGen

func generate(templatePath: String, destinationPath: Path, specPath: String, clean: Bool, options: String) {

    guard specPath != "" && URL(string: specPath) != nil else {
        writeError("Must provide a valid spec")
        exit(EXIT_FAILURE)
    }
    guard templatePath != "" && URL(string: templatePath) != nil else {
        writeError("Must provide a template")
        exit(EXIT_FAILURE)
    }

