1
1
mirror of https://github.com/github/semantic.git synced 2024-12-11 08:45:48 +03:00

Accept a CLI flag to include the packages.

This commit is contained in:
Rob Rix 2018-05-22 14:10:37 -04:00
parent 74f6f1cfeb
commit 11c0253df3

View File

@ -87,6 +87,7 @@ arguments = info (version <*> helper <*> ((,) <$> optionsParser <*> argumentsPar
graphType <- flag Graph.ImportGraph Graph.ImportGraph (long "imports" <> help "Compute an import graph (default)")
<|> flag' Graph.CallGraph (long "calls" <> help "Compute a call graph")
let style = Graph.style
includePackages <- switch (long "packages" <> help "Include a vertex for the package, with edges from it to each module")
serializer <- flag (Task.serialize (DOT style)) (Task.serialize (DOT style)) (long "dot" <> help "Output in DOT graph format (default)")
<|> flag' (Task.serialize JSON) (long "json" <> help "Output JSON graph")
rootDir <- rootDirectoryOption