From 6c4f9ded346890722024f8bc392d82fbe9a43159 Mon Sep 17 00:00:00 2001 From: Mohamed Afifi Date: Tue, 1 Nov 2016 14:16:49 +0100 Subject: [PATCH 1/2] Add ability to select output location --- App/Source/main.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/App/Source/main.swift b/App/Source/main.swift index 347f846..dda43bd 100644 --- a/App/Source/main.swift +++ b/App/Source/main.swift @@ -57,17 +57,17 @@ private func writeFile(_ file: OriginalFile, toPath path: String) throws } -if CommandLine.argc<2 +if CommandLine.argc<3 { - print("Usage: XLIFFix \n") + print("Usage: XLIFFix \n") exit(1) } let args = CommandLine.arguments let filemgr = FileManager.default -let currentPath = filemgr.currentDirectoryPath +let outputDirectory = CommandLine.arguments[1] -for i in 1.. Date: Tue, 1 Nov 2016 14:20:01 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1214a19..4fca1be 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Utility for recreating strings file from XLIFF. Build the command line utility and put it in a convenient place. Usage: -`XLIFFix path/to/lang.xliff` +`XLIFFix ` Creates a `.lproj` at the current location and places the reconstituted strings files from the XLIFF there.