diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-11-21 10:06:06 +0100 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-11-23 19:55:55 +0100 |
| commit | 5f79ebf2615bc974ff118b6dfc7e3c22f284d2ae (patch) | |
| tree | b38f9836ed76f3697fc766b17cb9cd1f907cee80 | |
| parent | 55f91677bbcaa4b29a09dfb5cfc0efe7d5e1ac5a (diff) | |
Fix timeout argument parsing
| -rw-r--r-- | src/Main.hs | 2 |
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"] |