summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-11-21 10:06:06 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2026-11-23 19:55:55 +0100
commit5f79ebf2615bc974ff118b6dfc7e3c22f284d2ae (patch)
treeb38f9836ed76f3697fc766b17cb9cd1f907cee80 /src
parent55f91677bbcaa4b29a09dfb5cfc0efe7d5e1ac5a (diff)
Fix timeout argument parsing
Diffstat (limited to 'src')
-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"]