1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00

Add blob option for parsing

This commit is contained in:
Rick Winfrey 2017-03-14 11:17:20 -07:00
parent e347d04f55
commit 9a5e9f289a
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ data CmdLineOptions = CmdLineOptions
{ outputFormat :: R.Format
, maybeTimeout :: Maybe Float
, outputFilePath :: Maybe FilePath
, blobEntry :: Maybe String
, noIndex :: Bool
, extraArgs :: [ExtraArg]
, developmentMode' :: Bool

View File

@ -41,6 +41,7 @@ argumentsParser = info (version <*> helper <*> argumentsP)
<|> flag' R.ParseTree (long "parse-tree" <> help "output JSON parse tree structure"))
<*> optional (option auto (long "timeout" <> help "timeout for per-file diffs in seconds, defaults to 7 seconds"))
<*> optional (strOption (long "output" <> short 'o' <> help "output directory for split diffs, defaults to stdout if unspecified"))
<*> optional (strOption (long "blob" <> short 'b' <> help "blob entry for parsing"))
<*> switch (long "no-index" <> help "compare two paths on the filesystem")
<*> some (argument (eitherReader parseShasAndFiles) (metavar "SHA_A..SHAB FILES..."))
<*> switch (long "development" <> short 'd' <> help "set development mode which prevents timeout behavior by default")