mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-02-04 23:30:27 +01:00
Support for --summary (pinging @DanBurton)
This commit is contained in:
parent
30b6d57f5c
commit
6bac842472
10
app/main.hs
10
app/main.hs
@ -1,9 +1,13 @@
|
|||||||
import Application (makeApplication)
|
import Application (makeApplication)
|
||||||
import Prelude (IO)
|
import Prelude (Bool(..), IO, elem, putStrLn)
|
||||||
import Prelude (Bool(..))
|
|
||||||
import Settings (parseExtra)
|
import Settings (parseExtra)
|
||||||
import Yesod.Default.Config (fromArgs)
|
import Yesod.Default.Config (fromArgs)
|
||||||
import Yesod.Default.Main (defaultMainLog)
|
import Yesod.Default.Main (defaultMainLog)
|
||||||
|
import System.Environment (getArgs)
|
||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = defaultMainLog (fromArgs parseExtra) (makeApplication False)
|
main = do
|
||||||
|
args <- getArgs
|
||||||
|
if "--summary" `elem` args
|
||||||
|
then putStrLn "Run the server software for www.stackage.org"
|
||||||
|
else defaultMainLog (fromArgs parseExtra) (makeApplication False)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user