aboutsummaryrefslogtreecommitdiff
path: root/app/Server.hs
diff options
context:
space:
mode:
authorIan Jeffries <ianspiral@gmail.com>2019-03-22 19:04:01 -0400
committerAlexey Kiryushin <alexey.a.kiryushin@gmail.com>2019-03-23 02:04:01 +0300
commitb24d1456d03e86407c66ca623f79072ff54de362 (patch)
tree189fd587993391a3d3c563706ee420386a7f1191 /app/Server.hs
parentdb54d0594b84966ec3568c90c4219abb60c2e41f (diff)
Default --package to '.' (#27)
Diffstat (limited to 'app/Server.hs')
-rw-r--r--app/Server.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Server.hs b/app/Server.hs
index 353f808..2304f27 100644
--- a/app/Server.hs
+++ b/app/Server.hs
@@ -206,7 +206,8 @@ configParser =
some
(strOption
(long "package" <> short 'p' <> metavar "PATH" <>
- help "Path to a Cabal package"))) <*>
+ help "Path to a Cabal package (Default: '.')"))
+ <|> pure (Directories ["."])) <*>
(pure 8080 <|>
option
auto