aboutsummaryrefslogtreecommitdiff
path: root/Main.hs
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2013-09-03 00:00:50 -0300
committerRaúl Benencia <rul@kalgan.cc>2013-09-03 00:00:50 -0300
commite41dd5091f597e2252deb9ecbde900eda7c15614 (patch)
treeb60a532b67aa9932dd0af9a00daf5735e496812b /Main.hs
parent56b4aef769386e9fbe3b074698451e8b74489d61 (diff)
Sorted index mode
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs8
1 files changed, 3 insertions, 5 deletions
diff --git a/Main.hs b/Main.hs
index ebc4810..416b65a 100644
--- a/Main.hs
+++ b/Main.hs
@@ -19,12 +19,10 @@ import Screen
import State
parse ["-h"] = usage >> exit
+parse ["--help"] = usage >> exit
parse ["-v"] = version >> exit
-parse [md] = do
- putStrLn $ "Maildirs directory: " ++ md
- run entryPoint
-
-parse [] = usage >> die
+parse ["--version"] = version >> exit
+parse _ = run entryPoint
usage = putStrLn . unlines $ usageText where
usageText = ["Usage: ./Main [-vh] <maildirs>"
nihil fit ex nihilo