about summary refs log tree commit diff
path: root/src/GopherProxy/Params.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/GopherProxy/Params.hs')
-rw-r--r--src/GopherProxy/Params.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/GopherProxy/Params.hs b/src/GopherProxy/Params.hs
index c99d099..e39f8f1 100644
--- a/src/GopherProxy/Params.hs
+++ b/src/GopherProxy/Params.hs
@@ -18,7 +18,7 @@ data Params
     { hostname     :: HostName
     , port         :: PortNumber
     , httpPort     :: Int
-    , cssPath      :: FilePath
+    , cssPath      :: Maybe FilePath
     , cssUrl       :: BS.ByteString
     , baseUrl      :: Text
     , listenPublic :: Bool
@@ -41,10 +41,10 @@ params = Params
     (long "http-port"
     <> metavar "PORT"
     <> help "port gopher-proxy should listen on")
-  <*> strOption
+  <*> optional (strOption
     (long "css-path"
     <> metavar "PATH"
-    <> help "path of the css to be used")
+    <> help "path of the css to be used"))
   <*> optionalWithDefault "/gopher-proxy.css" (option auto
     (long "css-url"
     <> metavar "PATH"