1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 17:05:33 +03:00

Add a CLI option for the JSON renderer.

This commit is contained in:
Rob Rix 2016-02-25 14:16:26 -07:00
parent 2ae6114eb6
commit 41a260913d

View File

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