mirror of
https://github.com/snoyberg/keter.git
synced 2025-01-05 21:36:40 +03:00
14 lines
339 B
Haskell
14 lines
339 B
Haskell
{-# LANGUAGE NoImplicitPrelude #-}
|
|
import Prelude (error, (++), ($), IO)
|
|
import System.Environment (getArgs, getProgName)
|
|
import Keter.Main (keter)
|
|
|
|
main :: IO ()
|
|
main = do
|
|
args <- getArgs
|
|
case args of
|
|
[dir] -> keter dir
|
|
_ -> do
|
|
pn <- getProgName
|
|
error $ "Usage: " ++ pn ++ " <root folder>"
|