1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Default to split diffs in the parser.

This commit is contained in:
Rob Rix 2015-11-02 12:57:41 -05:00
parent 39fbf3c828
commit e766a97995

View File

@ -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("--") }