1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-15 10:03:22 +03:00
juvix/app/Commands/Doctor/Options.hs
2022-09-14 16:16:15 +02:00

18 lines
352 B
Haskell

module Commands.Doctor.Options where
import CommonOptions
newtype DoctorOptions = DoctorOptions
{ _doctorOffline :: Bool
}
deriving stock (Data)
parseDoctorOptions :: Parser DoctorOptions
parseDoctorOptions = do
_doctorOffline <-
switch
( long "offline"
<> help "Run the doctor offline"
)
pure DoctorOptions {..}