1-- Copyright (c) 2019 The DAML Authors. All rights reserved.
2-- SPDX-License-Identifier: Apache-2.0
4module Arguments(Arguments(..), getArguments) where
6import Options.Applicative
9data Arguments = Arguments
11 ,argsCwd :: Maybe FilePath
12 ,argFiles :: [FilePath]
14 ,argsShakeProfiling :: Maybe FilePath
18getArguments :: IO Arguments
19getArguments = execParser opts
21 opts = info (arguments <**> helper)
23 <> progDesc "Used as a test bed to check your IDE will work"
24 <> header "ghcide - the core of a Haskell IDE")
26arguments :: Parser Arguments
28 <$> switch (long "lsp" <> help "Start talking to an LSP server")
29 <*> optional (strOption $ long "cwd" <> metavar "DIR" <> help "Change to this directory")
30 <*> many (argument str (metavar "FILES/DIRS..."))
31 <*> switch (long "version" <> help "Show ghcide and GHC versions")
32 <*> optional (strOption $ long "shake-profiling" <> metavar "DIR" <> help "Dump profiling reports to this directory")
33 <*> switch (long "test" <> help "Enable additional lsp messages used by the testsuite")
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list