From e766a9799557ae648b16f8685a0f62dc965f89cd Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Mon, 2 Nov 2015 12:57:41 -0500 Subject: [PATCH] Default to split diffs in the parser. --- prototype/doubt-difftool/Argument.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/prototype/doubt-difftool/Argument.swift b/prototype/doubt-difftool/Argument.swift index b8711ea89..e6fc6423d 100644 --- a/prototype/doubt-difftool/Argument.swift +++ b/prototype/doubt-difftool/Argument.swift @@ -45,6 +45,7 @@ enum Argument { private let flag: Madness.Parser<[String], Argument.Output>.Function = const(Argument.Output.Unified) <^> satisfy { $0 == "--unified" } <|> const(Argument.Output.Split) <^> satisfy { $0 == "--split" } + <|> pure(Argument.Output.Split) private let source: Madness.Parser<[String], Source>.Function = { try! Source($0) } <^> satisfy { !$0.hasPrefix("--") }