;dev: web: refactor
This commit is contained in:
parent
957b217386
commit
c0a4983e87
@ -152,7 +152,8 @@ rawOptsToWebOpts :: RawOpts -> IO WebOpts
|
||||
rawOptsToWebOpts rawopts =
|
||||
checkWebOpts <$> do
|
||||
cliopts <- rawOptsToCliOpts rawopts
|
||||
let h = fromMaybe defhost $ maybestringopt "host" rawopts
|
||||
let
|
||||
h = fromMaybe defhost $ maybestringopt "host" rawopts
|
||||
p = fromMaybe defport $ maybeposintopt "port" rawopts
|
||||
b = maybe (defbaseurl h p) stripTrailingSlash $ maybestringopt "base-url" rawopts
|
||||
sock = stripTrailingSlash <$> maybestringopt "socket" rawopts
|
||||
|
||||
Loading…
Reference in New Issue
Block a user