Add default values to the CLI
This commit is contained in:
parent
c31b52ce5e
commit
66b125bc80
1 changed files with 4 additions and 0 deletions
|
@ -20,12 +20,16 @@ parseArgs = execParser $ info (helper <*> args) (fullDesc <> progDesc "Run the M
|
||||||
, short 'c'
|
, short 'c'
|
||||||
, help "Set the Dhall configuration"
|
, help "Set the Dhall configuration"
|
||||||
, metavar "DHALL"
|
, metavar "DHALL"
|
||||||
|
, value "./config.dhall"
|
||||||
|
, showDefault
|
||||||
])
|
])
|
||||||
<*> option str (mconcat
|
<*> option str (mconcat
|
||||||
[ long "languages"
|
[ long "languages"
|
||||||
, short 'l'
|
, short 'l'
|
||||||
, help "Set the languages directory"
|
, help "Set the languages directory"
|
||||||
, metavar "DIR"
|
, metavar "DIR"
|
||||||
|
, value "./languages/"
|
||||||
|
, showDefault
|
||||||
])
|
])
|
||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
|
|
Loading…
Reference in a new issue