We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86fe4eb commit c620366Copy full SHA for c620366
exe/Arguments.hs
@@ -36,7 +36,7 @@ data Arguments = Arguments
36
-- them to just change the name of the exe and still work.
37
, argsDebugOn :: Bool
38
, argsLogFile :: Maybe String
39
-
+ , argsThread :: Int
40
}
41
42
getArguments :: String -> IO Arguments
@@ -73,6 +73,13 @@ arguments exeName = Arguments
73
<> metavar "LOGFILE"
74
<> help "File to log to, defaults to stdout"
75
))
76
+ <*> option auto
77
+ (short 'j'
78
+ <> help "Number of threads (0: automatic)"
79
+ <> metavar "NUM"
80
+ <> value 1
81
+ <> showDefault
82
+ )
83
84
-- ---------------------------------------------------------------------
85
-- Set the GHC libdir to the nix libdir if it's present.
0 commit comments