aboutsummaryrefslogtreecommitdiff
path: root/Command/WebApp.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-07-08 15:39:05 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-07-08 15:39:05 -0400
commitb2252febf1355e62a00fb735831d3b2a1aed2566 (patch)
tree621fb71f80252d300436261bb1d67ee537d1f7e9 /Command/WebApp.hs
parente7e61fb6cbe5455ded9bb550a64121223c099fc2 (diff)
support cmdnorepo actions, also using getopt-applicative there
Diffstat (limited to 'Command/WebApp.hs')
-rw-r--r--Command/WebApp.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Command/WebApp.hs b/Command/WebApp.hs
index 2a639e489..2e41ebe7d 100644
--- a/Command/WebApp.hs
+++ b/Command/WebApp.hs
@@ -39,9 +39,10 @@ import System.Environment (getArgs)
cmd :: Command
cmd = withOptions [listenOption] $
- noCommit $ noRepo startNoRepo $ dontCheck repoExists $ notBareRepo $
- command "webapp" SectionCommon "launch webapp"
- paramNothing (withParams seek)
+ noCommit $ dontCheck repoExists $ notBareRepo $
+ noRepo (withParams startNoRepo) $
+ command "webapp" SectionCommon "launch webapp"
+ paramNothing (withParams seek)
listenOption :: Option
listenOption = fieldOption [] "listen" paramAddress