X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhalcyon.git;a=blobdiff_plain;f=src%2FCommandLine.hs;h=06c072e8715af292cb8a5d83ffa5ed0cd29b2aa4;hp=e70aa964c667e3d22aa88afcefb3847da84169ba;hb=f519b55ffe72acd791bdc91b16918603afce1995;hpb=7bb00e04c15781d889f950d00babf3f183047bff diff --git a/src/CommandLine.hs b/src/CommandLine.hs index e70aa96..06c072e 100644 --- a/src/CommandLine.hs +++ b/src/CommandLine.hs @@ -11,17 +11,18 @@ import System.Exit (ExitCode(..), exitWith) import System.IO (hPutStrLn, stderr) -- Get the version from Cabal. -import Paths_twat (version) +import Paths_halcyon (version) import Data.Version (showVersion) -import OptionalConfiguration import ExitCodes +import OptionalConfiguration description :: String -description = "Twat twats tweets so you don't have to twitter." +description = + "Monitor a list of Twitter accounts and display or email any new tweets." program_name :: String -program_name = "twat" +program_name = "halcyon" my_summary :: String my_summary = program_name ++ "-" ++ (showVersion version) @@ -124,8 +125,8 @@ arg_spec = &= helpArg [groupname "Common flags"] &= versionArg [groupname "Common flags"] -show_help :: IO (CmdArgs OptionalCfg) -show_help = withArgs ["--help"] parse_args +show_help :: IO OptionalCfg +show_help = withArgs ["--help"] parse_args >>= cmdArgsApply