From 41a260913d01f0f31b2dc3b3693fe8441661034a Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Thu, 25 Feb 2016 14:16:26 -0700 Subject: [PATCH] Add a CLI option for the JSON renderer. --- app/Main.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Main.hs b/app/Main.hs index 4509d5726..3ddfdee23 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -13,6 +13,7 @@ arguments :: Parser Arguments arguments = Arguments <$> (flag DO.Split DO.Unified (long "unified" <> help "output a unified diff") <|> flag DO.Split DO.Patch (long "patch" <> help "output a patch(1)-compatible diff") + <|> flag DO.Split DO.JSON (long "json" <> help "output a json diff") <|> flag' DO.Split (long "split" <> help "output a split diff")) <*> optional (strOption (long "output" <> short 'o' <> help "output directory for split diffs, defaulting to stdout if unspecified")) <*> strArgument (metavar "FILE a")