O2MR7QHTC3YJ2BBLNDEI7LY6RWE53BEAJNOQXJYSXEHFI7JKHAUQC
configBuild :: Config Build -> Config Run
configBuild Config {..} = Config
{ dataFile = fromMaybe mempty . getLast !<- dataFile
configBuild :: FilePath -> Config Build -> Config Run
configBuild datadir Config {..} = Config
{ dataFile = fromMaybe (datadir </> "db.json") . getLast !<- dataFile
dataFileOpt :: Parser (Maybe FilePath)
dataFileOpt = optional $ strOption (long "data-file" <> short 'f' <> metavar "FILE")
dataFileOpt :: Parser (Build Last FilePath)
dataFileOpt = Build . Last <$> optional (strOption
(long "data-file"
<> short 'f'
<> metavar "FILE"
<> help "The datafile to read from, if none is given it will default to DATA_HOME of the XDG Base Directory implementation"))