Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 42028a8

Browse files
committed
Allow ts-parse command to also accept these
1 parent 2b37bc9 commit 42028a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Semantic/CLI.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ tsParseCommand = command "ts-parse" (info tsParseArgumentsParser (progDesc "Gene
133133
<$> option str (long "gitDir" <> help "A .git directory to read from")
134134
<*> option shaReader (long "sha" <> help "The commit SHA1 to read from")
135135
<*> ( ExcludePaths <$> many (option str (long "exclude" <> short 'x' <> help "Paths to exclude"))
136-
<|> ExcludeFromHandle <$> flag' stdin (long "exclude-stdin" <> help "Exclude paths given to stdin"))
136+
<|> ExcludeFromHandle <$> flag' stdin (long "exclude-stdin" <> help "Exclude paths given to stdin")
137+
<|> OnlyPaths <$> many (option str (long "only" <> help "Only include the specified paths"))
138+
<|> OnlyPathsFromHandle <$> flag' stdin (long "only-stdin" <> help "Include only the paths given to stdin"))
137139
<|> FilesFromPaths <$> some (argument filePathReader (metavar "FILES..."))
138140
<|> pure (FilesFromHandle stdin)
139141
pure $ Task.readBlobs filesOrStdin >>= AST.runASTParse format

0 commit comments

Comments
 (0)