mirror of
https://github.com/github/semantic.git
synced 2024-12-25 16:02:43 +03:00
Add blob option for parsing
This commit is contained in:
parent
e347d04f55
commit
9a5e9f289a
@ -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
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user