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:
parent
39fbf3c828
commit
e766a97995
@ -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("--") }
|
||||
|
Loading…
Reference in New Issue
Block a user