1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-19 04:41:36 +03:00
juvix/app/Commands/Dev/Core/Asm/Options.hs

22 lines
513 B
Haskell
Raw Normal View History

module Commands.Dev.Core.Asm.Options where
import CommonOptions
data CoreAsmOptions = CoreAsmOptions
{ _coreAsmPrint :: Bool,
_coreAsmInputFile :: AppPath File
}
deriving stock (Data)
makeLenses ''CoreAsmOptions
parseCoreAsmOptions :: Parser CoreAsmOptions
parseCoreAsmOptions = do
_coreAsmPrint <-
switch
( long "print"
<> help "print the generated JuvixAsm code instead of running it"
)
_coreAsmInputFile <- parseInputFile FileExtJuvixCore
pure CoreAsmOptions {..}