Skip to content

Commit

Permalink
Small patch to correct the parser for static files (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
choener authored Jan 7, 2025
1 parent c952649 commit 60c370c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/Wst/Cli/Command.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import Options.Applicative (CommandFields, Mod, Parser, ReadM, argument, auto,
command, eitherReader, fullDesc, help, info, long,
metavar, option, optional, progDesc, short,
subparser, value)
import Options.Applicative.Builder (strOption)
import Text.Read (readMaybe)
import Wst.Server (ServerArgs (..))

Expand Down Expand Up @@ -64,7 +65,7 @@ parseServerArgs :: Parser ServerArgs
parseServerArgs =
ServerArgs
<$> option auto (help "The port" <> value 8080 <> long "port" <> short 'p')
<*> optional (option auto (help "Folder to serve static files from" <> long "static-files"))
<*> optional (strOption (help "Folder to serve static files from" <> long "static-files"))

parseTxIn :: Parser TxIn
parseTxIn =
Expand Down

0 comments on commit 60c370c

Please sign in to comment.