diff options
Diffstat (limited to 'Command/WebApp.hs')
-rw-r--r-- | Command/WebApp.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Command/WebApp.hs b/Command/WebApp.hs index dab8e1e5b..2a639e489 100644 --- a/Command/WebApp.hs +++ b/Command/WebApp.hs @@ -40,13 +40,14 @@ import System.Environment (getArgs) cmd :: Command cmd = withOptions [listenOption] $ noCommit $ noRepo startNoRepo $ dontCheck repoExists $ notBareRepo $ - command "webapp" paramNothing seek SectionCommon "launch webapp" + command "webapp" SectionCommon "launch webapp" + paramNothing (withParams seek) listenOption :: Option listenOption = fieldOption [] "listen" paramAddress "accept connections to this address" -seek :: CommandSeek +seek :: CmdParams -> CommandSeek seek ps = do listenhost <- getOptionField listenOption return withNothing (start listenhost) ps |