Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yusanlou committed Apr 8, 2017
1 parent 3fdc933 commit fb73254
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Sources/commandService/Const.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "\".*?\""
Expand Down
12 changes: 6 additions & 6 deletions Sources/localizationCommand/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -53,7 +53,7 @@ do {
}

if version.value {

print("1.0.3".blue)
exit(EX_USAGE)
}

Expand Down

0 comments on commit fb73254

Please sign in to comment.