From 0d0c6c186dedacf1b61af0561971f71e9692bb0a Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Thu, 29 Oct 2015 18:11:58 -0400 Subject: [PATCH] Find the UI path one earlier. --- prototype/doubt-difftool/main.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prototype/doubt-difftool/main.swift b/prototype/doubt-difftool/main.swift index 2b40dc80c..169bdbe11 100644 --- a/prototype/doubt-difftool/main.swift +++ b/prototype/doubt-difftool/main.swift @@ -87,7 +87,7 @@ guard let aSource = try arguments[1].map(Source.init) else { throw "need source guard let bSource = try arguments[2].map(Source.init) else { throw "need source B" } let temporary = try NSFileManager.defaultManager().URLForDirectory(.ItemReplacementDirectory, inDomain: .UserDomainMask, appropriateForURL: NSURL(fileURLWithPath: Process.arguments[0]).URLByDeletingLastPathComponent!, create: true) let jsonURL = temporary.URLByAppendingPathComponent("diff.json") -guard let uiPath = arguments[4] else { throw "need ui path" } +guard let uiPath = arguments[3] else { throw "need ui path" } guard aSource.type == bSource.type else { throw "can’t compare files of different types" } guard let parser = Source.languagesByType[aSource.type].map(termWithInput) else { throw "don’t know how to parse files of type \(aSource.type)" }