Work around optparse-applicative behavior change
This commit is contained in:
parent
e39be76191
commit
b5ea4326f9
@ -1,3 +1,7 @@
|
|||||||
|
## 1.4.18.2
|
||||||
|
|
||||||
|
* Work around change in behavior in newer optparse-applicative ([mailing list discussion](https://groups.google.com/d/msg/yesodweb/BrTkMKFREgU/AKVc9AK2AQAJ))
|
||||||
|
|
||||||
## 1.4.18.1
|
## 1.4.18.1
|
||||||
|
|
||||||
* error handling when checking for stack binary [#1219](https://github.com/yesodweb/yesod/pull/1219)
|
* error handling when checking for stack binary [#1219](https://github.com/yesodweb/yesod/pull/1219)
|
||||||
|
|||||||
@ -174,24 +174,24 @@ optParser :: Parser Options
|
|||||||
optParser = Options
|
optParser = Options
|
||||||
<$> flag Cabal CabalDev ( long "dev" <> short 'd' <> help "use cabal-dev" )
|
<$> flag Cabal CabalDev ( long "dev" <> short 'd' <> help "use cabal-dev" )
|
||||||
<*> switch ( long "verbose" <> short 'v' <> help "More verbose output" )
|
<*> switch ( long "verbose" <> short 'v' <> help "More verbose output" )
|
||||||
<*> subparser ( command "init" (info initOptions
|
<*> subparser ( command "init" (info (helper <*> initOptions)
|
||||||
(progDesc "Command no longer available, please use 'stack new'"))
|
(progDesc "Command no longer available, please use 'stack new'"))
|
||||||
<> command "hsfiles" (info (pure HsFiles)
|
<> command "hsfiles" (info (pure HsFiles)
|
||||||
(progDesc "Create a hsfiles file for the current folder"))
|
(progDesc "Create a hsfiles file for the current folder"))
|
||||||
<> command "configure" (info (pure Configure)
|
<> command "configure" (info (pure Configure)
|
||||||
(progDesc "Configure a project for building"))
|
(progDesc "Configure a project for building"))
|
||||||
<> command "build" (info (Build <$> extraCabalArgs)
|
<> command "build" (info (helper <*> (Build <$> extraCabalArgs))
|
||||||
(progDesc $ "Build project (performs TH dependency analysis)" ++ windowsWarning))
|
(progDesc $ "Build project (performs TH dependency analysis)" ++ windowsWarning))
|
||||||
<> command "touch" (info (pure Touch)
|
<> command "touch" (info (pure Touch)
|
||||||
(progDesc $ "Touch any files with altered TH dependencies but do not build" ++ windowsWarning))
|
(progDesc $ "Touch any files with altered TH dependencies but do not build" ++ windowsWarning))
|
||||||
<> command "devel" (info develOptions
|
<> command "devel" (info (helper <*> develOptions)
|
||||||
(progDesc "Run project with the devel server"))
|
(progDesc "Run project with the devel server"))
|
||||||
<> command "test" (info (pure Test)
|
<> command "test" (info (pure Test)
|
||||||
(progDesc "Build and run the integration tests"))
|
(progDesc "Build and run the integration tests"))
|
||||||
<> command "add-handler" (info addHandlerOptions
|
<> command "add-handler" (info (helper <*> addHandlerOptions)
|
||||||
(progDesc ("Add a new handler and module to the project."
|
(progDesc ("Add a new handler and module to the project."
|
||||||
++ " Interactively asks for input if you do not specify arguments.")))
|
++ " Interactively asks for input if you do not specify arguments.")))
|
||||||
<> command "keter" (info keterOptions
|
<> command "keter" (info (helper <*> keterOptions)
|
||||||
(progDesc "Build a keter bundle"))
|
(progDesc "Build a keter bundle"))
|
||||||
<> command "version" (info (pure Version)
|
<> command "version" (info (pure Version)
|
||||||
(progDesc "Print the version of Yesod"))
|
(progDesc "Print the version of Yesod"))
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-bin
|
name: yesod-bin
|
||||||
version: 1.4.18.1
|
version: 1.4.18.2
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user