Change unused argument to undefined to make possible bugs more obvious

This commit is contained in:
Jakob Schöttl 2019-04-16 21:50:47 +02:00
parent 593ee39284
commit 4444b8bc8f

View File

@ -283,7 +283,7 @@ intervalFromRawOpts = lastDef NoInterval . catMaybes . map intervalfromrawopt
either
(\e -> usageError $ "could not parse period option: "++customErrorBundlePretty e)
extractIntervalOrNothing $
parsePeriodExpr nulldate (stripquotes $ T.pack v) -- reference date does not affect the interval
parsePeriodExpr undefined (stripquotes $ T.pack v) -- reference date does not affect the interval
| n == "daily" = Just $ Days 1
| n == "weekly" = Just $ Weeks 1
| n == "monthly" = Just $ Months 1