@@ -93,7 +93,7 @@ args = Args
93-- Since 2.0.1
93-- Since 2.0.1
94runCommandLine :: (Args -> Middleware) -> IO ()
94runCommandLine :: (Args -> Middleware) -> IO ()
95runCommandLine middleware = do
95runCommandLine middleware = do
96− args@Args {..} <- execParser $ info (helper <*> args) fullDesc
96+ args@Args {..} <- execParser $ info (helperOption <*> args) fullDesc
97 let mime' = map (pack *** S8.pack) mime
97 let mime' = map (pack *** S8.pack) mime
98 let mimeMap = Map.fromList mime' `Map.union` defaultMimeMap
98 let mimeMap = Map.fromList mime' `Map.union` defaultMimeMap
99 docroot' <- canonicalizePath docroot
99 docroot' <- canonicalizePath docroot
@@ -110,3 +110,8 @@ runCommandLine middleware = do
110 { ssIndices = if noindex then [] else mapMaybe (toPiece . pack) index
110 { ssIndices = if noindex then [] else mapMaybe (toPiece . pack) index
111 , ssGetMimeType = return . mimeByExt mimeMap defaultMimeType . fromPiece . fileName
111 , ssGetMimeType = return . mimeByExt mimeMap defaultMimeType . fromPiece . fileName
114+ helperOption :: Parser (a -> a)
116+ abortOption ShowHelpText $
117+ mconcat [long "help", help "Show this help text", hidden]