-- The usage header
usage :: String
-usage = "Usage: hath [-h] [-i FILE]"
+usage = "Usage: hath [regexed|reduced] [-h] [-i FILE]"
-- The usage header, and all available flags (as generated by GetOpt)
else do
-- Some non-option was given, but were any of them modes?
case (lowercase (non_options !! 0)) of
- "regex" -> return Regex
- "reduce" -> return Reduce
- _ -> return Regex
+ "regex" -> return Regex
+ "regexed" -> return Regex
+ "reduce" -> return Reduce
+ "reduced" -> return Reduce
+ _ -> return Regex