mirror of
https://github.com/github/semantic.git
synced 2024-12-29 18:06:14 +03:00
don't need arguments parser
This commit is contained in:
parent
6169b9ade4
commit
65dba45afb
@ -79,13 +79,6 @@ optionsParser = do
|
||||
logPathsOnError <- switch (long "log-paths" <> help "Log source paths on parse and assignment error.")
|
||||
pure $ Options logLevel logPathsOnError (Flag.flag FailOnWarning failOnWarning) (Flag.flag FailOnParseError failOnParseError)
|
||||
|
||||
argumentsParser :: Parser (Task.TaskEff ())
|
||||
argumentsParser = do
|
||||
subparser <- hsubparser (diffCommand <> parseCommand <> tsParseCommand <> graphCommand)
|
||||
output <- ToPath <$> strOption (long "output" <> short 'o' <> help "Output path, defaults to stdout") <|> pure (ToHandle stdout)
|
||||
pure $ subparser >>= Task.write output
|
||||
|
||||
|
||||
parseCommand :: Mod CommandFields (Task.TaskEff Builder)
|
||||
parseCommand = command "parse" (info parseArgumentsParser (progDesc "Generate parse trees for path(s)"))
|
||||
where
|
||||
|
Loading…
Reference in New Issue
Block a user