summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 8e89f7c..53799e5 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -82,7 +82,7 @@ options =
"never use colors for output (default when stdout is not a tty)"
, Option ['t'] ["timeout"]
(ReqArg (\str -> to $ \opts -> case readMaybe str of
- Just timeout -> opts { optTimeout = timeout }
+ Just timeout -> opts { optTimeout = Just timeout }
Nothing -> error "timeout must be a number") "<seconds>")
"default timeout in seconds with microsecond precision"
, Option ['g'] ["gdb"]