remove mandatory requirements for parameters

This commit is contained in:
shinancao 2018-04-22 20:40:40 +08:00
parent e4dc04f636
commit 04c0905653
1 changed files with 2 additions and 2 deletions

View File

@ -27,10 +27,10 @@ cli.addOption(helpOption)
let versionOption = BoolOption(shortFlag: "v", longFlag: "version", helpMessage: "Print version.")
let jsonPathOption = StringOption(longFlag: "json", required: true, helpMessage: "Path of json file.")
let jsonPathOption = StringOption(longFlag: "json", helpMessage: "Path of json file.")
cli.addOption(jsonPathOption)
let directoryOption = StringOption(shortFlag: "d", longFlag: "dir", required: true, helpMessage: "Directory to the output model files.")
let directoryOption = StringOption(shortFlag: "d", longFlag: "dir", helpMessage: "Directory to the output model files.")
cli.addOption(directoryOption)
let modelTypeOption = EnumOption<ModelType>(shortFlag: "t", longFlag: "model-type", helpMessage: "model type operation - o for Objective-C, s for Swift. Default is Swift.")