mirror of
https://github.com/anoma/juvix.git
synced 2024-12-15 10:03:22 +03:00
18 lines
352 B
Haskell
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 {..}
|