support cmdnorepo actions, also using getopt-applicative there
This commit is contained in:
parent
6e5c1f8db3
commit
92d8f80bff
10 changed files with 54 additions and 68 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue