File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ data Arguments = Arguments
13
13
,argsVersion :: Bool
14
14
,argsShakeProfiling :: Maybe FilePath
15
15
,argsTesting :: Bool
16
+ ,argsThreads :: Int
16
17
}
17
18
18
19
getArguments :: IO Arguments
@@ -31,3 +32,4 @@ arguments = Arguments
31
32
<*> switch (long " version" <> help " Show ghcide and GHC versions" )
32
33
<*> optional (strOption $ long " shake-profiling" <> metavar " DIR" <> help " Dump profiling reports to this directory" )
33
34
<*> switch (long " test" <> help " Enable additional lsp messages used by the testsuite" )
35
+ <*> option auto (short ' j' <> help " Number of threads (0: automatic)" <> metavar " NUM" <> value 0 <> showDefault)
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ main = do
100
100
{ optReportProgress = clientSupportsProgress caps
101
101
, optShakeProfiling = argsShakeProfiling
102
102
, optTesting = argsTesting
103
+ , optThreads = argsThreads
103
104
, optInterfaceLoadingDiagnostics = argsTesting
104
105
}
105
106
debouncer <- newAsyncDebouncer
You can’t perform that action at this time.
0 commit comments