aboutsummaryrefslogtreecommitdiff
path: root/app/Indexer.hs
diff options
context:
space:
mode:
Diffstat (limited to 'app/Indexer.hs')
-rw-r--r--app/Indexer.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Indexer.hs b/app/Indexer.hs
index 9560fad..7fc560e 100644
--- a/app/Indexer.hs
+++ b/app/Indexer.hs
@@ -39,7 +39,9 @@ import Options.Applicative
, optional
, progDesc
, short
+ , showDefault
, strOption
+ , value
)
import Paths_haskell_code_explorer as HSE (version)
import System.Directory (createDirectoryIfMissing)
@@ -160,7 +162,7 @@ configParser :: Parser IndexerConfig
configParser =
IndexerConfig <$>
strOption
- (long "package" <> short 'p' <> metavar "PATH" <>
+ (long "package" <> short 'p' <> metavar "PATH" <> value "." <> showDefault <>
help "Path to a Cabal package") <*>
optional
(strOption