From fb732542bdce048186a69af44f8f9be903ec9ee0 Mon Sep 17 00:00:00 2001 From: BackNotGod <754748816@qq.com> Date: Sat, 8 Apr 2017 17:58:29 +0800 Subject: [PATCH] update --- Sources/commandService/Const.swift | 2 +- Sources/localizationCommand/main.swift | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Sources/commandService/Const.swift b/Sources/commandService/Const.swift index 6d9b130..1633835 100644 --- a/Sources/commandService/Const.swift +++ b/Sources/commandService/Const.swift @@ -16,7 +16,7 @@ enum FileType :String{ case other } -let VERSION = "0.0.1" +let VERSION = "1.0.3" let SWIFT_REGEX = "NSLocalizedString\\(\"(.+?)\", comment: (.+?)\\)" let OC_REGEX = "NSLocalizedString\\(@\"(.+?)\", (.+?)\\)" let LOCAL_ERGEX = "\".*?\"" diff --git a/Sources/localizationCommand/main.swift b/Sources/localizationCommand/main.swift index 1dae291..d63c99d 100644 --- a/Sources/localizationCommand/main.swift +++ b/Sources/localizationCommand/main.swift @@ -20,15 +20,15 @@ let exceptPath = MultiStringOption(shortFlag: "e", longFlag: "exceptPath", helpM let projectPath = StringOption(shortFlag: "p", longFlag: "projectPath", helpMessage: "projectPath paths which should search in.") let version = BoolOption(shortFlag: "v", longFlag: "version", helpMessage: "version.") -let swift = BoolOption(shortFlag: "s", longFlag: "swift", - helpMessage: "will scan code files of *.swift.") -let oc = BoolOption(shortFlag: "m", longFlag: "oc", - helpMessage: "will scan code files of *.m.") +//let swift = BoolOption(shortFlag: "s", longFlag: "swift", +// helpMessage: "will scan code files of *.swift.") +//let oc = BoolOption(shortFlag: "m", longFlag: "oc", +// helpMessage: "will scan code files of *.m.") // not in this time let appendOpt = BoolOption(shortFlag: "a", longFlag: "append", helpMessage: "append to the file context.") let replaceOpt = BoolOption(shortFlag: "r", longFlag: "replace", helpMessage: "replace to the file context.") -cli.setOptions(help,exceptPath,projectPath,version,swift,oc,appendOpt,replaceOpt) +cli.setOptions(help,exceptPath,projectPath,version,appendOpt,replaceOpt) cli.formatOutput = { s,type in var str: String @@ -53,7 +53,7 @@ do { } if version.value { - + print("1.0.3".blue) exit(EX_USAGE) }