driverslop

This commit is contained in:
2026-07-06 05:01:34 -06:00
parent 51c86a12cc
commit b2d9a982ac
8 changed files with 68 additions and 16 deletions
+5 -5
View File
@@ -17,8 +17,8 @@ import GHC.Generics (Generic)
data Options = MkOptions
{ -- dumpANF :: Maybe FilePath
-- , dumpQBE :: Maybe FilePath
output :: Maybe FilePath
, sourceFiles :: HashSet FilePath
output :: FilePath
, sourceFile :: FilePath
}
deriving (Show, Generic)
@@ -38,14 +38,14 @@ data Options = MkOptions
-- <> metavar "FILE"
-- )
parseOutput =
optional $ strOption
parseOutput = strOption
( long "output"
<> short 'o'
<> metavar "FILE"
<> value "-"
)
parser :: Parser Options
parser = MkOptions
<$> parseOutput
<*> (HS.fromList <$> some (argument str (metavar "FILES")))
<*> argument str (metavar "FILE")