packages feed

shellify-0.14.0.0: app/Main.hs

module Main where

import Shellify (runShellify, printErrorAndReturnFailure)
import System.Environment (getArgs)
import Options(parseCommandLine)
import Options.Applicative (handleParseResult)
import Control.Monad ((>=>))

main :: IO ()
main = getArgs >>=
         either printErrorAndReturnFailure
                (handleParseResult >=> runShellify )
         . parseCommandLine